check_rsnapshot.pl
changeset 23 b39907422946
parent 20 fb36e0e666d7
child 24 2516a761473b
--- a/check_rsnapshot.pl	Tue Apr 02 10:54:33 2013 +0200
+++ b/check_rsnapshot.pl	Thu Dec 12 11:06:57 2013 +0100
@@ -47,7 +47,7 @@
 my %opt = (
     binary => "/usr/bin/rsnapshot",
     maxage => undef,
-    date   => "yesterday"
+    date   => "today"
 );
 
 MAIN: {
@@ -196,7 +196,13 @@
 
 =item B<-d>|B<--date> I<string>
 
-Parse date for rsnapshot logfile. (default: yesterday)
+Parse date for rsnapshot logfile. (default: today)
+
+Note: this defaulted to 'yesterday' earlier to avoid the situation that the
+check goes critical while rsnapshot is still running. I think the nagios check
+should either be scheduled later or the check should indeed check for the run
+from yesterday if a later schedule is not desirable for some reason in that
+case. But that should B<not> be the default. 
 
 =item B<-h>|B<--help>