added new check in nagios

This commit is contained in:
Maria Haider 2020-07-07 18:07:18 +02:00
parent 3abc518ec9
commit c1c646c927
Signed by: mariah
GPG key ID: 7414A760CA747E57
2 changed files with 147 additions and 135 deletions

View file

@ -1147,6 +1147,18 @@ class nagios_monitor {
description => 'check number of countries in eIDAS', description => 'check number of countries in eIDAS',
contact_groups => ['alerts'], contact_groups => ['alerts'],
} }
nagioscfg::command {'check_metadata_age':
command_line => "/usr/lib/nagios/plugins/check_eidas_metadata_age.sh '\$ARG1\$' '\$ARG2\$' '\$ARG3\$'"
}
$hosts = ['qa.md.swedenconnect.se', 'md.swedenconnect.se', 'md.eidas.swedenconnect.se', 'qa.md.eidas.swedenconnect.se']
$hosts.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}",
contact_groups => ['alerts'],
}
}
} }
class redis_cluster_node { class redis_cluster_node {