mirror of https://github.com/zulip/zulip.git
nagios: Check HTTPS instead of HTTP
(imported from commit ba0bb76d9bea6661e5396308eb431ff95ef51771)
This commit is contained in:
parent
cb153967ec
commit
23c108a05c
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue