On Fri, Dec 19, 2008 at 10:17 AM, Vincent Schultz <user-c08270e43333@xymon.invalid> wrote:
Hello,
I am trying to monitor a log file in order to be alerted when the string
"error." appears.
For instance :
error.grammar
error.noressource
... should send an alert
but "error " (with a space after) should not.
I tried to put in hobbit-clients.cfg :
LOG /tmp/log error. COLOR=yellow
==> does not work
LOG /tmp/log %(?-i)error. COLOR=yellow
==> works but match with error (without the .)
`.' includes space as well.
Try something like %error\.. (untested)
Does anyone can help me to find the correct regexp please ?
Thank you,
Vincent
--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu