-e is sufficient
authorStephen Gran <steve@lobefin.net>
Thu, 21 May 2009 21:12:58 +0000 (22:12 +0100)
committerStephen Gran <steve@lobefin.net>
Thu, 21 May 2009 21:12:58 +0000 (22:12 +0100)
config/nagios-master.cfg
dsa-nagios-checks/checks/dsa-check-file_age
dsa-nagios-checks/debian/changelog

index 4e8e79c..61f5581 100644 (file)
@@ -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
 
index 569504d..546e5f2 100755 (executable)
@@ -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
index 9e2f8b3..2f5ab38 100644 (file)
@@ -1,3 +1,9 @@
+dsa-nagios-checks (74) stable; urgency=low
+
+  * -e is sufficient
+
+ -- Stephen Gran <sgran@debian.org>  Thu, 21 May 2009 22:12:34 +0100
+
 dsa-nagios-checks (73) stable; urgency=low
 
   * Er, new test needs to be executable