Code

Fix bug #1593073 Check_Log problem with log rotation
authorThomas Guyot-Sionnest <dermoth@users.sourceforge.net>
Thu, 1 Feb 2007 05:33:07 +0000 (05:33 +0000)
committerThomas Guyot-Sionnest <dermoth@users.sourceforge.net>
Thu, 1 Feb 2007 05:33:07 +0000 (05:33 +0000)
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@1602 f882894a-f735-0410-b71e-b25c423dba1c

plugins-scripts/check_log.sh

index 38375dd15c0440e2d08cb0e10348bff8ce9ffaa2..20c55f4ed029bef1a50d7a2316b26cd844527a73 100755 (executable)
@@ -197,7 +197,7 @@ else
     $CHMOD 600 $tempdiff
 fi
 
-$DIFF $logfile $oldlog > $tempdiff
+$DIFF $logfile $oldlog | $GREP -v "^>" > $tempdiff
 
 # Count the number of matching log entries we have
 count=`$GREP -c "$query" $tempdiff`