[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] What is the syntax for GROUP=web,web2 ?





--------------------------------------------------
From: "HenrikStørner" <henrik (at) hswn.dk>
Sent: Tuesday, November 11, 2008 3:23 PM
To: <hobbit (at) hswn.dk>
Subject: Re: [hobbit] What is the syntax for GROUP=web,web2 ?

On Tue, Nov 11, 2008 at 02:53:03PM -0600, T.J. Yang wrote:

PROC httpd 5 GROUP=web
PROC sshd 1 GROUP=admins
In the hobbit-alerts.cfg file, you could then have rules like
GROUP=web
   MAIL webmaster (at) foo.com
GROUP=admins
   MAIL root (at) foo.com

The above notes in hobbit-clients.cfg explain for httpd process less than 5,
send alert to web(webaster (at) foo.com).

But I don't know what is the correct syntax to specify more than one recepients ?

is it "GROUP=web,web2,web3"

GROUP is a criterium, i.e. a way to select which alerts apply
to this rule.

MAIL is an action - what happens when the criterium is matched.

So "GROUP=web,web2" would match any definition in
hobbit-clients.cfg which had a "GROUP=web" or "GROUP=web2"
tag assosiated.

If what you want is to send the alerts to several people, then
you put those on the MAIL line. Like

  GROUP=web
       MAIL joe (at) foo.com,liz (at) bar.org

in my case I have

GROUP=data-team-email
               dataemail (at) work.com
GROUP=data-team-page
               pager (at) work.com

so for some data partitions
I need them to be alerted by both email and pager.
So I should configure my hobbit-client.cfg
as
HOST=dataserver.work.com
       /export 95 99 GROUP=data-team-email,data-team-page

Thanks for the clarification,

tj


Regards,
Henrik


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