From f859054d0f3d6900fd346caa48f9e5046492d341 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 6 Apr 2012 16:09:11 +0200 Subject: [PATCH] accept that handel wants auth --- config/nagios-master.cfg | 7 +++++++ config/static/checkcommands.cfg | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/config/nagios-master.cfg b/config/nagios-master.cfg index a6a74c3..81b9f36 100644 --- a/config/nagios-master.cfg +++ b/config/nagios-master.cfg @@ -2219,6 +2219,13 @@ services: 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 - diff --git a/config/static/checkcommands.cfg b/config/static/checkcommands.cfg index 1591f52..b7cffad 100644 --- a/config/static/checkcommands.cfg +++ b/config/static/checkcommands.cfg @@ -71,3 +71,7 @@ define command{ 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' +} -- 2.20.1