mirror of
				https://github.com/zulip/zulip.git
				synced 2025-11-03 21:43:21 +00:00 
			
		
		
		
	puppet: Add nagios check for long-lived certs that do not auto-renew.
This commit is contained in:
		@@ -191,6 +191,11 @@ define command{
 | 
				
			|||||||
       command_line     /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' --expect=200,302,401
 | 
					       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{
 | 
					define command{
 | 
				
			||||||
       command_name     check_proxy_status
 | 
					       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
 | 
					       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
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -488,3 +488,10 @@ define service {
 | 
				
			|||||||
        hostgroup_name                  smokescreen
 | 
					        hostgroup_name                  smokescreen
 | 
				
			||||||
        contact_groups                  page_admins
 | 
					        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
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user