[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [monit] Showing context for file changes

From: Martin Pala
Subject: Re: [monit] Showing context for file changes
Date: Sat, 8 Aug 2009 01:22:31 +0200

Thanks for recommendation, we'll most probably add something like this.


On Aug 7, 2009, at 2:49 PM, Pavel Shevaev wrote:

Folks, monit is a great tool for watching for file content changes,
kudos to the author of this feature ;)
What I'm a bit missing is the possibility to show some context around
the changed lines, just like grep does with -A, -B, -C options.

It would be really cool to have such stuff in monit as well, e.g:

check file some.log with path /tmp/some.log
if match "\[ERR\]" with context 3 then alert
if match "\[WRN\]" with context after 2 then alert

I don't know the internals of monit well, so there is no patch from me
only the idea :)

Best regards, Pavel

To unsubscribe:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]