Xymon Mailing List Archive search

msgs column alerts (hobbit-4.2-alfa-20060404)

list Dominique Frise
Sat, 08 Apr 2006 10:25:53 +0200
Message-Id: <user-3dd9208fbb32@xymon.invalid>

John Glowacki wrote:
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

John, the man pages for LOG (Solaris 9 installation)are:

hobbit-clients.cfg(5) -- Configuration file for the hobbitd_client module
client-local.cfg(5) --  Local configuration settings for Hobbit clients

Good luck.

Dominique
UNIL - University of Lausanne