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: Check health of APT repository.

Alex Vandiver6ee74b3433be
diff --git a/puppet/zulip_ops/files/nagios3/commands.cfg b/puppet/zulip_ops/files/nagios3/commands.cfg
index 8ba7b7330e3..464cabb601a 100644
--- a/puppet/zulip_ops/files/nagios3/commands.cfg
+++ b/puppet/zulip_ops/files/nagios3/commands.cfg
@@ -200,3 +200,8 @@ 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
}
+
+define command{
+ command_name check_apt_repo_status
+ command_line /usr/lib/nagios/plugins/check_http --sni --ssl -H '$ARG1$' -u 'https://$ARG1$$ARG2$/dists/stable/Release' --expect=200 -s Contents-amd64
+}
diff --git a/puppet/zulip_ops/files/nagios3/conf.d/services.cfg b/puppet/zulip_ops/files/nagios3/conf.d/services.cfg
index 0ad19a3ca3a..8eef0b8bcd3 100644
--- a/puppet/zulip_ops/files/nagios3/conf.d/services.cfg
+++ b/puppet/zulip_ops/files/nagios3/conf.d/services.cfg
@@ -488,6 +488,15 @@ define service {
hostgroup_name smokescreen
contact_groups page_admins
}
+
+define service {
+ use generic-service
+ service_description Check desktop APT repository
+ host_name nagios
+ check_command check_apt_repo_status!download.zulip.com!/desktop/apt
+ contact_groups admins
+}
+
define service {
use generic-service
service_description Check chat.fhir.org cert