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

Dominique Frise Dominique.Frise at unil.ch
Fri Apr 7 19:09:18 CEST 2006


Dominique Frise wrote:
> Hi,
> 
> I still could not trigger any alert (yellow/red) for the msgs column :-(
> Config. for clients was made following the man pages for 
> hobbit-clients.cfg and client-local.cfg.
> 
> -----hobbit-clients.cfg----
> HOST=argos,eliot
>     LOAD    8.0 16.0
>     LOG    messages quota_ufs
> ---------------------------
> -----client-local.cfg----
> [sunos]
> log:/var/adm/messages:10240
> -------------------------
> 
> On argos client (sunos),there are lots of entries with "quota_ufs" in 
> /var/adm/messages but the msgs column stays green even if I start the 
> client from scratch (erasing tmp files).
> 
> 
> BTW: hobbitd-client in testing mode does not support the new LOG tag:
> [bb at iris etc]$ ../bin/hobbitd_client --test
> Hostname (.=end, ?=dump, !=reload) []: argos
> Test (cpu, mem, disk, proc):
> 
> 
> Please help: I'm stuck!
> 
> 
> Dominique
> UNIL - University of Lausanne
> 
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
> 
> 
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



More information about the Xymon mailing list