check_rsnapshot.pl
changeset 23 b39907422946
parent 20 fb36e0e666d7
child 24 2516a761473b
equal deleted inserted replaced
22:3424e8d5613a 23:b39907422946
    45 my $VERSION = "2.8";
    45 my $VERSION = "2.8";
    46 
    46 
    47 my %opt = (
    47 my %opt = (
    48     binary => "/usr/bin/rsnapshot",
    48     binary => "/usr/bin/rsnapshot",
    49     maxage => undef,
    49     maxage => undef,
    50     date   => "yesterday"
    50     date   => "today"
    51 );
    51 );
    52 
    52 
    53 MAIN: {
    53 MAIN: {
    54     Getopt::Long::Configure('bundling');
    54     Getopt::Long::Configure('bundling');
    55     GetOptions(
    55     GetOptions(
   194 Files modified more than B<--maxage> seconds ago will be silently ignored.
   194 Files modified more than B<--maxage> seconds ago will be silently ignored.
   195 (default: same as B<--date>)
   195 (default: same as B<--date>)
   196 
   196 
   197 =item B<-d>|B<--date> I<string>
   197 =item B<-d>|B<--date> I<string>
   198 
   198 
   199 Parse date for rsnapshot logfile. (default: yesterday)
   199 Parse date for rsnapshot logfile. (default: today)
       
   200 
       
   201 Note: this defaulted to 'yesterday' earlier to avoid the situation that the
       
   202 check goes critical while rsnapshot is still running. I think the nagios check
       
   203 should either be scheduled later or the check should indeed check for the run
       
   204 from yesterday if a later schedule is not desirable for some reason in that
       
   205 case. But that should B<not> be the default. 
   200 
   206 
   201 =item B<-h>|B<--help>
   207 =item B<-h>|B<--help>
   202 
   208 
   203 Print detailed help screen.
   209 Print detailed help screen.
   204 
   210