From: Peter Palfrader Date: Tue, 16 Jul 2013 22:09:58 +0000 (+0200) Subject: Exit 0 on OK X-Git-Url: https://wiki.adam-barratt.org.uk/gitweb/?a=commitdiff_plain;h=f9729cd743bed8a9b1e69c197eedabf3c4f3001c;p=mirror%2Fdsa-nagios.git Exit 0 on OK --- diff --git a/config/nagios-master.cfg b/config/nagios-master.cfg index be544fc..bd1f8a8 100644 --- a/config/nagios-master.cfg +++ b/config/nagios-master.cfg @@ -1933,7 +1933,7 @@ services: normal_check_interval: 60 - name: setup - local hostname etc-hosts - nrpe: 'if getent ahosts `hostname` | grep -q 127.0; then echo "Warning: local hostname resolves to 127/8 address"; exit 1; else echo "OK: Hostname resolves to non-127/8 address."; exit 1; fi' + nrpe: 'if getent ahosts `hostname` | grep -q 127.0; then echo "Warning: local hostname resolves to 127/8 address"; exit 1; else echo "OK: Hostname resolves to non-127/8 address."; exit 0; fi' hostgroups: computers excludehosts: wagner, vasks normal_check_interval: 60