Dominique Frise wrote:
Hi all,
After some debugging (client_config.c:scan_log), I finally could
trigger yellow or red state on the msgs column!
1/ logfilename
Unlike what the man page says, the logfilename must include the
directory OR it must be a regexp (leading %)
Examples:
LOG /var/log/messages
LOG %messages
LOG messages <-- won't work!
2/ pattern
The string to match must be a regexp
Examples:
%warning
warning <-- won't work!
I did not try the excludepattern.
Dominique
UNIL - University of Lausanne
Dominique,
That is just what I needed to get started. Where did you find a man page
that explains LOG? I didn't see one.
Setting yellow and red rules to these:
LOG %messages %error yellow
LOG %messages %warn red
Echoed the following to the messages file:
warn10
warn error 10
error10
Displayed the following alerts:
Critical entries in /var/log/messages
yellow warn error 10
yellow error10
red warn10
red warn error 10
Full log /var/log/messages
warn10
warn error 10
error10
I didn't have any luck with setting ignoreexp either.
John
To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe (at) hswn.dk