nagios: Check HTTPS instead of HTTP

(imported from commit ba0bb76d9bea6661e5396308eb431ff95ef51771)
This commit is contained in:
Zev Benjamin 2014-06-05 11:47:16 -07:00
parent cb153967ec
commit 23c108a05c
2 changed files with 6 additions and 2 deletions

View File

@ -166,3 +166,7 @@ define command{
command_line /usr/lib/nagios/plugins/check_by_ssh -l zulip -t 30 -i /var/lib/nagios/.ssh/id_rsa -H $HOSTADDRESS$ -C '/usr/lib/nagios/plugins/check_worker_memory'
}
define command{
command_name check_https_status
command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' --expect=200,302,401
}

View File

@ -1,8 +1,8 @@
define service {
use generic-service
hostgroup_name web
service_description HTTP
check_command check_http
service_description HTTPS
check_command check_https_status
contact_groups page_admins
}