From 5bfd19ce4471d8eeec89925fb5f3a8a8509ccb39 Mon Sep 17 00:00:00 2001 From: Stephen Gran Date: Thu, 21 May 2009 22:12:58 +0100 Subject: [PATCH] -e is sufficient --- config/nagios-master.cfg | 2 +- dsa-nagios-checks/checks/dsa-check-file_age | 2 +- dsa-nagios-checks/debian/changelog | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) 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 -- 2.20.1