Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

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

Alex Vandiverc01345d20cc5
diff --git a/puppet/zulip_ops/files/nagios3/commands.cfg b/puppet/zulip_ops/files/nagios3/commands.cfg
index adfef33fc3f..8ba7b7330e3 100644
--- a/puppet/zulip_ops/files/nagios3/commands.cfg
+++ b/puppet/zulip_ops/files/nagios3/commands.cfg
@@ -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
diff --git a/puppet/zulip_ops/files/nagios3/conf.d/services.cfg b/puppet/zulip_ops/files/nagios3/conf.d/services.cfg
index a15e60348b5..0ad19a3ca3a 100644
--- a/puppet/zulip_ops/files/nagios3/conf.d/services.cfg
+++ b/puppet/zulip_ops/files/nagios3/conf.d/services.cfg
@@ -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
+}