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

Dominique Frise Dominique.Frise at unil.ch
Sat Apr 8 10:25:53 CEST 2006


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
> 
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
> 
> 

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



More information about the Xymon mailing list