monitor certs on public hosts

This commit is contained in:
Leif Johansson 2018-07-25 15:45:20 +02:00
parent 495c02c6e8
commit 6a3f239824

View file

@ -787,12 +787,15 @@ class nagios_monitor {
nagioscfg::command {'check_ssl_cert_3':
command_line => "/usr/lib/nagios/plugins/check_ssl_cert -A -H '\$HOSTADDRESS\$' -c '\$ARG2\$' -w '\$ARG1\$' -p '\$ARG3\$'"
}
#nagioscfg::service {'check_ssl_cert':
# hostgroup_name => ['swamid_static_signer','swamid_pyff_signer','ds_legacy','swamid_sp_test','webfrontend','entropyserver','https_server'],
# check_command => 'check_ssl_cert_3!30!14!443',
# description => 'check https certificate validity on port 443',
# contact_groups => ['alerts']
#}
$public_hosts = ['swedenconnect.se','md.swedenconnect.se','md.eidas.swedenconnect.se','qa.connector.eidas.swedenconnect.se',
'qa.proxy.eidas.swedenconnect.se']
nagioscfg::host {$public_hosts: }
nagioscfg::service {'check_public_ssl_cert':
host_list => $public_hosts,
check_command => 'check_ssl_cert_3!30!14!443',
description => 'check https certificate validity on port 443',
contact_groups => ['alerts']
}
}
class redis_cluster_node {