changeset 18 | a154e6fd3163 |
parent 17 | 083486eb053d |
child 19 | 379eae48e070 |
--- a/check_rsnapshot.pl Tue Apr 02 10:05:32 2013 +0200 +++ b/check_rsnapshot.pl Tue Apr 02 10:10:06 2013 +0200 @@ -130,8 +130,8 @@ or print "RSNAPSHOT CRITICAL: $logfile - $!\n" and exit $ERRORS{CRITICAL}; while (<FH>) { + next unless (/^\[$date/); $found_in_file = $logfile; - next unless (/^\[$date/); if (/^\[$date:.*ERROR/) { $error = $_; last;