modified the same check for humhub satosa proxies

This commit is contained in:
Maria Haider 2025-04-14 16:06:23 +02:00
parent 9cb7894d2f
commit 10e1446817
Signed by: mariah
GPG key ID: 6EF520A1829E8B1D

View file

@ -10,20 +10,25 @@ class net::naemon_monitor_config {
contact_groups => ['alerts']
}
$public_hosts = ['zoom-saas-idp-proxy.sunet.se']
$public_hosts = ['zoom-saas-idp-proxy.sunet.se', 'humhub-idp-proxy.sunet.se']
nagioscfg::host {$public_hosts: single_ip => true }
nagioscfg::command {'check_website':
command_line => "/usr/lib/nagios/plugins/check_http -H '\$HOSTNAME\$' -S -u '\$ARG1\$' -s '\$ARG2\$'"
}
$hosts_zoom = ['zoomproxy-tug-prod-1.sunet.se', 'zoomproxy-sto1-prod-1.sunet.se', 'zoom-saas-idp-proxy.sunet.se']
$hosts_zoom.each |$host|{
nagioscfg::service {"check_satosa_health${host}":
host_name => ["${host}"],
check_command => "check_website!https://${host}/healthcheck!ok",
description => "SATOSA running in ${host}",
$satosa_proxies = ['zoomproxy-tug-prod-1.sunet.se',
'zoomproxy-sto1-prod-1.sunet.se',
'zoom-saas-idp-proxy.sunet.se',
'humhub-idp-proxy.sunet.se',
'humhub-sto1-prod-2.sunet.se',
'humhub-sto3-prod-1.sunet.se']
$satosa_proxies.each |$satosa_proxy|{
nagioscfg::service {"check_satosa_health${satosa_proxy}":
host_name => ["${satosa_proxy}"],
check_command => "check_website!https://${satosa_proxy}/healthcheck!ok",
description => "SATOSA running in ${satosa_proxy}",
contact_groups => ['alerts'],
}
}
}
}