From: Stephen Gran Date: Thu, 21 May 2009 21:12:58 +0000 (+0100) Subject: -e is sufficient X-Git-Url: https://wiki.adam-barratt.org.uk/gitweb/?a=commitdiff_plain;h=5bfd19ce4471d8eeec89925fb5f3a8a8509ccb39;p=mirror%2Fdsa-nagios.git -e is sufficient --- diff --git a/config/nagios-master.cfg b/config/nagios-master.cfg index 4e8e79c..61f5581 100644 --- a/config/nagios-master.cfg +++ b/config/nagios-master.cfg @@ -893,7 +893,7 @@ services: - name: puppet - nrpe: "/usr/lib/nagios/plugins/dsa-check-file-age -f /var/lib/puppet/state/state.yaml" + nrpe: "/usr/lib/nagios/plugins/dsa-check-file_age -f /var/lib/puppet/state/state.yaml" hostgroups: lenny excludehosts: agnesi diff --git a/dsa-nagios-checks/checks/dsa-check-file_age b/dsa-nagios-checks/checks/dsa-check-file_age index 569504d..546e5f2 100755 --- a/dsa-nagios-checks/checks/dsa-check-file_age +++ b/dsa-nagios-checks/checks/dsa-check-file_age @@ -57,7 +57,7 @@ if [ -z "$FILE" ]; then usage 3 fi -if [ ! -r "$FILE" ]; then +if [ ! -e "$FILE" ]; then printf "state file %s is missing or unreadable\n" $FILE exit 2 fi diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index 9e2f8b3..2f5ab38 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -1,3 +1,9 @@ +dsa-nagios-checks (74) stable; urgency=low + + * -e is sufficient + + -- Stephen Gran Thu, 21 May 2009 22:12:34 +0100 + dsa-nagios-checks (73) stable; urgency=low * Er, new test needs to be executable