nagios check definition changes due to ubuntu 18 upgrade

This commit is contained in:
Maria Haider 2021-10-14 15:46:33 +02:00
parent 59380e87c4
commit 1c451158f2
Signed by: mariah
GPG key ID: 7414A760CA747E57

View file

@ -1158,9 +1158,12 @@ class nagios_monitor {
contact_groups => ['alerts'] contact_groups => ['alerts']
} }
nagioscfg::command {'check_ssl_cert_3': nagioscfg::command {'check_ssl_cert_3':
command_line => "/usr/lib/nagios/plugins/check_ssl_cert -A -H '\$HOSTADDRESS\$' -c '\$ARG2\$' -w '\$ARG1\$' -p '\$ARG3\$'" command_line => "/usr/lib/nagios/plugins/check_ssl_cert -A -H '\$HOSTNAME\$' -c '\$ARG2\$' -w '\$ARG1\$' -p '\$ARG3\$'"
} }
$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','test.connector.eidas.swedenconnect.se'] nagioscfg::command {'check_ssl_cert_3_without_ocsp':
command_line => "/usr/lib/nagios/plugins/check_ssl_cert -A -H '\$HOSTNAME\$' --ignore-ocsp -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','test.connector.eidas.swedenconnect.se']
nagioscfg::host {$public_hosts: } nagioscfg::host {$public_hosts: }
nagioscfg::service {'check_public_ssl_cert': nagioscfg::service {'check_public_ssl_cert':
host_name => $public_hosts, host_name => $public_hosts,
@ -1169,19 +1172,20 @@ class nagios_monitor {
contact_groups => ['alerts'] contact_groups => ['alerts']
} }
nagioscfg::command {'check_ssl_cert_altname': 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\$'" command_line => "/usr/lib/nagios/plugins/check_ssl_cert -n '\$ARG4\$' --altnames -H '\$HOSTNAME\$' --ignore-ocsp -c '\$ARG2\$' -w '\$ARG1\$' -p '\$ARG3\$'"
} }
nagioscfg::host {'prid.sveidas.se': }
nagioscfg::service {'check_public_ssl_cert_altname': nagioscfg::service {'check_public_ssl_cert_altname':
host_name => ['prid.sveidas.se'], host_name => ['prid.sveidas.se'],
check_command => 'check_ssl_cert_altname!30!14!443!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', description => 'check https certificate validity on port 443 with SAN',
contact_groups => ['alerts'] contact_groups => ['alerts']
} }
$infra_hosts = ['prid-1.qa.sveidas.se','prid-1.sveidas.se,','prid-2.sveidas.se'] $infra_hosts = ['prid-1.qa.sveidas.se','prid-1.sveidas.se,','prid-2.sveidas.se','prid.sveidas.se']
nagioscfg::service {'check_infra_ssl_cert': nagioscfg::service {'check_infra_ssl_cert':
host_name => $infra_hosts, host_name => $infra_hosts,
check_command => 'check_ssl_cert_3!30!14!443', check_command => 'check_ssl_cert_3_without_ocsp!30!14!443',
description => 'check https certificate validity on port 443', description => 'check https infra certificate validity on port 443',
contact_groups => ['alerts'] contact_groups => ['alerts']
} }
nagioscfg::command {'check_website': nagioscfg::command {'check_website':