[hobbit] sending particular alert message to particular users

Camelia Anghel canghel at cjh.org
Thu Sep 10 18:26:20 CEST 2009


Thanks so much! It worked adding Group to my client and alert files.
Camelia 

-----Original Message-----
From: Alan Sparks [mailto:asparks at doublesparks.net] 
Sent: Thursday, September 10, 2009 11:38 AM
To: hobbit at hswn.dk
Subject: Re: [hobbit] sending particular alert message to particular
users

Camelia Anghel wrote:
>
>  
>
> Hello,
>
> This is how my hobbit-client.cfg and hobbit-alerts.cfg look and I
> would like to send the first LOG to some users and the second LOG to
> different users.
>
> How do I send an alert based on a warning expression?
>
>  
>
> Hobbit-client.cfg
>
>   HOST=myhost.org
>
>   LOG /var/log/messages %failure*|%failed*|%error*|%Warning* COLOR=red
>
>   LOG /var/log/www_server_4881.log %exceeded* COLOR=red
>
>  
>
> Hobbit-alerts.cfg
>
> HOST=myhost.org
>
>           MAIL user at something.org SERVICE=msgs REPEAT=30m COLOR=red
> RECOVERED
>
>  
>
> Any help, suggestion will be appreciated
>
>  
>
> Thanks,
>
> Camelia Anghel
>
> canghel at cjh.org
>

You might experiment with the GROUP= directive, see documentation for it
in the hobbit-clients.cfg and hobbit-alerts.cfg man pages.

Maybe something like:

Hobbit-client.cfg

  HOST=myhost.org

      LOG /var/log/messages %failure*|%failed*|%error*|%Warning*
COLOR=red GROUP=mypeople

      LOG /var/log/www_server_4881.log %exceeded* COLOR=red
GROUP=yourpeople

 

Hobbit-alerts.cfg

HOST=myhost.org

      MAIL user at something.org GROUP=mypeople SERVICE=msgs REPEAT=30m
COLOR=red RECOVERED
      MAIL user at something.org GROUP=yourpeople SERVICE=msgs REPEAT=30m
COLOR=red RECOVERED

Hope this helps.
-Alan

To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk





More information about the Xymon mailing list