[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
file regex testing broken?
From: |
Mike Jackson |
Subject: |
file regex testing broken? |
Date: |
Wed, 7 Dec 2005 11:08:15 -0800 |
I have the following rule in my monitrc:
check file errorlog with path /usr/local/apache/logs/error_log
if match "Premature end of script headers" then alert
The problem is, whenever it matches, the status on the status page remains
at "Regex match" - it never resets to being clean, even if the logfile
rotates (which it does every morning) and no longer contains the string. It
only resets if I restart monit. Since the log shrinks, monit should reset
the read position to the beginning, unless monit is still accessing the file
by inode, and that's not changing in the rotation process. (That seems
unlikely, because the log rotation script writes out new files to a temp
directory, then moves them into place. The historical file has a new
filename, and the new error_log should be shorter since the previous day's
entries are deleted.)
It only sends an alert once, thank goodness.
I'm using monit 4.6 on a Redhat ES4 box (running the x86_64 version on an
Opteron processor, if that would make a difference). Any help would be
appreciated.
- file regex testing broken?,
Mike Jackson <=