add healthcheck for zoom hosts
This commit is contained in:
parent
4c332b3b90
commit
c7140814ce
1 changed files with 17 additions and 0 deletions
|
@ -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.',
|
notes => 'This check validates that restore from BaaS2 works as intended, see action URL for more info.',
|
||||||
contact_groups => ['alerts']
|
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'],
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue