puppet: Add nagios check for long-lived certs that do not auto-renew.

This commit is contained in:
Alex Vandiver
2021-03-23 19:27:27 -07:00
parent fea4bac2a5
commit c01345d20c
2 changed files with 12 additions and 0 deletions

View File

@@ -191,6 +191,11 @@ define command{
command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' --expect=200,302,401
}
define command{
command_name check_ssl_certificate
command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' --expect=200,302,401 -C30,14
}
define command{
command_name check_proxy_status
command_line /usr/lib/nagios/plugins/check_http --ssl -H 'www.google.com' -u 'https://www.google.com/' -j CONNECT -I '$HOSTADDRESS$' -p 4750 --expect=200,302,401 -s Search

View File

@@ -488,3 +488,10 @@ define service {
hostgroup_name smokescreen
contact_groups page_admins
}
define service {
use generic-service
service_description Check chat.fhir.org cert
host_name nagios
check_command check_ssl_certificate!chat.fhir.org
contact_groups admins
}