# HG changeset patch # User Matthias Förste # Date 1364891253 -7200 # Node ID 379eae48e0705afc0f30bbd95acc9b21d2cd27bb # Parent a154e6fd3163d7638183663dd9ccbbf715c99085 dropped 'zero size' warning because it would terminate the check even if there are more files to check and i don't actually consider this warning useful (the check will still fail if the rsnapshot run can't be found in any of the specified log files - whether they are empty or not) diff -r a154e6fd3163 -r 379eae48e070 check_rsnapshot.pl --- a/check_rsnapshot.pl Tue Apr 02 10:10:06 2013 +0200 +++ b/check_rsnapshot.pl Tue Apr 02 10:27:33 2013 +0200 @@ -102,11 +102,6 @@ exit $ERRORS{CRITICAL}; } - if (-z $logfile) { - print "RSNAPSHOT WARNING: logfile $logfile - has zero size\n"; - exit $ERRORS{WARNING}; - } - next if (stat $logfile)[9] < $maxage; if ($logfile =~ /\.gz$/) {