From 10e144681784443205ae114a1dd064a333f4a3ec Mon Sep 17 00:00:00 2001 From: Maria Haider Date: Mon, 14 Apr 2025 16:06:23 +0200 Subject: [PATCH] modified the same check for humhub satosa proxies --- .../net/manifests/naemon_monitor_config.pp | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/global/overlay/etc/puppet/modules/net/manifests/naemon_monitor_config.pp b/global/overlay/etc/puppet/modules/net/manifests/naemon_monitor_config.pp index c70e930..f2e58f6 100644 --- a/global/overlay/etc/puppet/modules/net/manifests/naemon_monitor_config.pp +++ b/global/overlay/etc/puppet/modules/net/manifests/naemon_monitor_config.pp @@ -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'], } } -} +} \ No newline at end of file