[Nagiosplug-checkins] nagiosplug/plugins-scripts check_log.sh, 1.7, 1.8

Thomas Guyot dermoth at users.sourceforge.net
Thu Feb 1 06:33:09 CET 2007


Update of /cvsroot/nagiosplug/nagiosplug/plugins-scripts
In directory sc8-pr-cvs7.sourceforge.net:/tmp/cvs-serv10063/plugins-scripts

Modified Files:
	check_log.sh 
Log Message:
Fix bug #1593073 Check_Log problem with log rotation


Index: check_log.sh
===================================================================
RCS file: /cvsroot/nagiosplug/nagiosplug/plugins-scripts/check_log.sh,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- check_log.sh	22 Mar 2006 14:32:06 -0000	1.7
+++ check_log.sh	1 Feb 2007 05:33:07 -0000	1.8
@@ -197,7 +197,7 @@
     $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`





More information about the Commits mailing list