name: network service - https
check: check_https
hostgroups: apache-https
+ excludehosts: handel
+ depends: "process - apache2 - master"
+ normal_check_interval: 120
+ -
+ name: network service - https with auth
+ check: dsa_check_https_want_auth
+ hosts: handel
depends: "process - apache2 - master"
normal_check_interval: 120
-
command_name dsa_check_port_closed
command_line /usr/lib/nagios/plugins/dsa-check-port-closed -H '$HOSTADDRESS$' -p $ARG1$
}
+define command{
+ command_name dsa_check_https_want_auth
+ command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -I '$HOSTADDRESS$' -e 'HTTP/1.1 401'
+}