[Nagiosplug-devel] [ nagiosplug-Bugs-1593073 ] Check_Log problem with log rotation

SourceForge.net noreply at sourceforge.net
Thu Nov 9 02:13:22 CET 2006


Bugs item #1593073, was opened at 2006-11-09 01:13
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1593073&group_id=29880

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: General plugin execution
Group: Release (specify)
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Mark Sparhawk (msparhawk)
Assigned to: Nobody/Anonymous (nobody)
Summary: Check_Log problem with log rotation

Initial Comment:
Release 1.4.5

In cases where a logfile being monitored is rotated,
the matching contents of the oldlogfile (file being
used for comparisons) will trigger an error even tho
none exist in the active monitored log.

On line 200

$DIFF $logfile $oldlog > $tempdiff

# Count the number of matching log entries we have
count=`$GREP -c "$query" $tempdiff`


I'm no developer, but it looks like this doesn't
differentiate between matches in oldlog and matches in
logfile.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1593073&group_id=29880




More information about the Devel mailing list