puppet: Check health of APT repository.

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

View File

@ -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
}

View File

@ -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