added a new nagios check
This commit is contained in:
parent
8474322281
commit
e95409bafb
1 changed files with 10 additions and 1 deletions
|
@ -1112,7 +1112,7 @@ 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\$'"
|
||||
}
|
||||
$public_hosts = ['demw.eidas.swedenconnect.se','swedenconnect.se','qa.test.swedenconnect.se','qa.md.swedenconnect.se','md.swedenconnect.se','md.eidas.swedenconnect.se','qa.md.eidas.swedenconnect.se','qa.connector.eidas.swedenconnect.se','qa.proxy.eidas.swedenconnect.se','connector.eidas.swedenconnect.se']
|
||||
$public_hosts = ['prid.sveidas.se', 'demw.eidas.swedenconnect.se','swedenconnect.se','qa.test.swedenconnect.se','qa.md.swedenconnect.se','md.swedenconnect.se','md.eidas.swedenconnect.se','qa.md.eidas.swedenconnect.se','qa.connector.eidas.swedenconnect.se','qa.proxy.eidas.swedenconnect.se','connector.eidas.swedenconnect.se']
|
||||
nagioscfg::host {$public_hosts: }
|
||||
nagioscfg::service {'check_public_ssl_cert':
|
||||
host_name => $public_hosts,
|
||||
|
@ -1120,6 +1120,15 @@ class nagios_monitor {
|
|||
description => 'check https certificate validity on port 443',
|
||||
contact_groups => ['alerts']
|
||||
}
|
||||
nagioscfg::command {'check_ssl_cert_altname':
|
||||
command_line => "/usr/lib/nagios/plugins/check_ssl_cert -n '\$ARG4\$' --altnames -H '\$HOSTADDRESS\$' -c '\$ARG2\$' -w '\$ARG1\$' -p '\$ARG3\$'"
|
||||
}
|
||||
nagioscfg::service {'check_public_ssl_cert_altname':
|
||||
host_name => ['prid.sveidas.se'],
|
||||
check_command => 'check_ssl_cert_altname!30!14!443!prid.sveidas.se',
|
||||
description => 'check https certificate validity on port 443 with SAN',
|
||||
contact_groups => ['alerts']
|
||||
}
|
||||
$infra_hosts = ['prid-1.qa.sveidas.se','prid-1.sveidas.se,','prid-2.sveidas.se']
|
||||
nagioscfg::service {'check_infra_ssl_cert':
|
||||
host_name => $infra_hosts,
|
||||
|
|
Loading…
Add table
Reference in a new issue