new nagios checks

ref: SC-1521
This commit is contained in:
Maria Haider 2023-04-12 19:29:56 +02:00
parent 3bd731b316
commit 6f74aae7b3
Signed by: mariah
GPG key ID: 7414A760CA747E57

View file

@ -1434,21 +1434,39 @@ class nagios_monitor {
nagioscfg::command {'check_metadata_age':
command_line => "/usr/lib/nagios/plugins/check_eidas_metadata_age.sh '\$ARG1\$' '\$ARG2\$' '\$ARG3\$'"
}
$hosts_md = ['qa.md.swedenconnect.se', 'md.swedenconnect.se']
$hosts_md = ['qa.md.swedenconnect.se', 'md.swedenconnect.se', 'test.md.swedenconnect.se']
$hosts_md.each |$host|{
nagioscfg::service {"check_metadata_age_${host}":
host_name => ["${host}"],
check_command => "check_metadata_age!https://${host}/entities/!691200!172800",
description => "check metadata for ${host}",
description => "check metadata age for ${host}",
contact_groups => ['alerts'],
}
}
$hosts_md_eidas = ['md.eidas.swedenconnect.se', 'qa.md.eidas.swedenconnect.se']
$hosts_md_eidas = ['md.eidas.swedenconnect.se', 'qa.md.eidas.swedenconnect.se', 'test.md.eidas.swedenconnect.se']
$hosts_md_eidas.each |$host|{
nagioscfg::service {"check_metadata_age_${host}":
host_name => ["${host}"],
check_command => "check_metadata_age!https://${host}/entities/!432000!86400",
description => "check metadata for ${host}",
description => "check metadata age for ${host}",
contact_groups => ['alerts'],
}
}
$hosts_proxy = ['proxy.eidas.swedenconnect.se', 'qa.proxy.eidas.swedenconnect.se', 'test.proxy.eidas.swedenconnect.se']
$hosts_proxy.each |$host|{
nagioscfg::service {"check_metadata_age_${host}":
host_name => ["${host}"],
check_command => "check_metadata_age!https://${host}/eidas-ps/ServiceMetadata/!432000!86400",
description => "check metadata age for ${host}",
contact_groups => ['alerts'],
}
}
$hosts_demw = ['demw.eidas.swedenconnect.se', 'qa.demw.eidas.swedenconnect.se']
$hosts_demw.each |$host|{
nagioscfg::service {"check_metadata_age_${host}":
host_name => ["${host}"],
check_command => "check_metadata_age!https://${host}/eidas-middleware/Metadata/!432000!86400",
description => "check metadata age for ${host}",
contact_groups => ['alerts'],
}
}