Xymon Mailing List Archive search

User-defined alert group

4 messages in this thread

list Galen Johnson · Wed, 8 Jun 2016 17:43:35 +0000 ·
Hey,


I'd swear Xymon can do this but I'm having a hell of a time finding it in the help.  I seem to recall that you could add an alias in the alerts.cfg file that would allow you to set up a list of user groups that you then use in your alert rules.  I don't _think_ it's the macros but similar.  For example,


alias group1

    user-0af975a14a70@xymon.invalid

    user-ce481dfc14e2@xymon.invalid


HOST=www.foo.com
MAIL group1 SERVICE=http REPEAT=1h


This would email Bob and Mary.  Anyone else recall this and can point me to the right man page?


thanks


=G=
list John Thurston · Wed, 08 Jun 2016 09:50:46 -0800 ·
quoted from Galen Johnson
On 6/8/2016 9:43 AM, Galen Johnson wrote:
Hey,


I'd swear Xymon can do this but I'm having a hell of a time finding it
in the help.  I seem to recall that you could add an alias in the
alerts.cfg file that would allow you to set up a list of user groups
that you then use in your alert rules.
I use something like the following in my alerts.cfg:
$ImportantPeople=user-ab339435b1e3@xymon.invalid,user-e9512ef4eaf0@xymon.invalid,user-90e9c7049af6@xymon.invalid

DISPLAYGROUP=Production
    MAIL $ImportantPeople COLOR=red

-- 
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska
list Galen Johnson · Wed, 8 Jun 2016 17:53:33 +0000 ·
Wasn't sure if I used multiple emails like that if it would work, either.  I don't recall that being the way to do it but it if works...

thanks

=G=
quoted from John Thurston

From: Xymon <xymon-bounces at xymon.com> on behalf of John Thurston <user-ce4d79d99bab@xymon.invalid>
Sent: Wednesday, June 8, 2016 1:50 PM
To: xymon at xymon.com
Subject: Re: [Xymon] User-defined alert group

On 6/8/2016 9:43 AM, Galen Johnson wrote:
Hey,


I'd swear Xymon can do this but I'm having a hell of a time finding it
in the help.  I seem to recall that you could add an alias in the
alerts.cfg file that would allow you to set up a list of user groups
that you then use in your alert rules.
I use something like the following in my alerts.cfg:
$ImportantPeople=user-ab339435b1e3@xymon.invalid,user-e9512ef4eaf0@xymon.invalid,user-90e9c7049af6@xymon.invalid

DISPLAYGROUP=Production
    MAIL $ImportantPeople COLOR=red

--
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska
list John Thurston · Wed, 08 Jun 2016 09:57:03 -0800 ·
quoted from Galen Johnson
On 6/8/2016 9:53 AM, Galen Johnson wrote:
Wasn't sure if I used multiple emails like that if it would work, either.  I don't recall that being the way to do it but it if works...
The syntax works and is consistent with the man page for alerts.cfg:
MAIL address[,address] Recipient who receives an e-mail alert.
quoted from Galen Johnson
-- 
    Do things because you should, not just because you can.

John Thurston    XXX-XXX-XXXX
user-ce4d79d99bab@xymon.invalid
Enterprise Technology Services
Department of Administration
State of Alaska