add healthcheck for zoom hosts

This commit is contained in:
Maria Haider 2025-04-14 15:46:53 +02:00
parent 4c332b3b90
commit c7140814ce
Signed by: mariah
GPG key ID: 6EF520A1829E8B1D

View file

@ -9,4 +9,21 @@ class net::naemon_monitor_config {
notes => 'This check validates that restore from BaaS2 works as intended, see action URL for more info.',
contact_groups => ['alerts']
}
$public_hosts = ['zoom-saas-idp-proxy.sunet.se']
nagioscfg::host {$public_hosts: sort_alphabetically => 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}",
contact_groups => ['alerts'],
}
}
}