Xymon Mailing List Archive search

What is the syntax for GROUP=web,web2 ?

3 messages in this thread

list T.J. Yang · Tue, 11 Nov 2008 14:53:03 -0600 ·
# You can also associate a GROUP id with a rule. The group-id is passed to# the alert module, which can then use it to control who gets an alert when# a failure occurs. E.g. the following associates the "httpd" process check# with the "web" group, and the "sshd" check with the "admins" group:#    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 user-b7c20e0da76a@xymon.invalid#    GROUP=admins#       MAIL user-04caac0eb454@xymon.invalid
 
The above notes in hobbit-clients.cfg explain for httpd process less than 5,
send alert to web(user-401205b5bf4b@xymon.invalid).
 
But I don't know what is the correct syntax to specify more than one recepients ?
 
is it "GROUP=web,web2,web3"
or 
 
"GROUP=web web2 web3"
 
or else ?
 
Thanks for your pointerT.J. Yang
Stay up to date on your PC, the Web, and your mobile phone with Windows Live
http://clk.atdmt.com/MRT/go/119462413/direct/01/
list Henrik Størner · Tue, 11 Nov 2008 22:23:21 +0100 ·
quoted from T.J. Yang
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 user-b7c20e0da76a@xymon.invalid
GROUP=admins
   MAIL user-04caac0eb454@xymon.invalid
 
The above notes in hobbit-clients.cfg explain for httpd process less than 5,
send alert to web(user-401205b5bf4b@xymon.invalid).
 
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 user-d083d77d33f5@xymon.invalid,user-dd634354da20@xymon.invalid


Regards,
Henrik
list T.J. Yang · Tue, 11 Nov 2008 16:04:28 -0600 ·
quoted from Henrik Størner

From: "HenrikStørner" <user-ce4a2c883f75@xymon.invalid>
Sent: Tuesday, November 11, 2008 3:23 PM
To: <user-ae9b8668bcde@xymon.invalid>
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 user-b7c20e0da76a@xymon.invalid
GROUP=admins
   MAIL user-04caac0eb454@xymon.invalid

The above notes in hobbit-clients.cfg explain for httpd process less than 
5,
send alert to web(user-401205b5bf4b@xymon.invalid).

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 user-d083d77d33f5@xymon.invalid,user-dd634354da20@xymon.invalid
in my case I have

GROUP=data-team-email
                user-9f0ca6536afa@xymon.invalid
GROUP=data-team-page
                user-9744b1596e56@xymon.invalid

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