Xymon Mailing List Archive search

Alerts

2 messages in this thread

list Nikesh Maharaj · Wed, 10 Oct 2007 11:04:07 +0200 ·
Hi guys, 
 
In my alert rules, 
 
                HOST=*

                                MAIL  user-dd28c5cb1c5a@xymon.invalid SERVICE=http
FORMAT=PLAIN

 
My question is, can I add another email address to MAIL? Can I also add
another service ? will this be using a comma to separate them 
Like MAIL user-dd28c5cb1c5a@xymon.invalid, user-b6451e0ca958@xymon.invalid SERVICE=http,disk,cpu

 
Thanks
list Henrik Størner · Wed, 10 Oct 2007 12:38:33 +0200 ·
quoted from Nikesh Maharaj
On Wed, Oct 10, 2007 at 11:04:07AM +0200, Nikesh Maharaj wrote:
In my alert rules, 
    HOST=*
	MAIL  user-dd28c5cb1c5a@xymon.invalid SERVICE=http FORMAT=PLAIN

My question is, can I add another email address to MAIL? Can I also add
another service ? will this be using a comma to separate them 

Like MAIL user-dd28c5cb1c5a@xymon.invalid, user-b6451e0ca958@xymon.invalid SERVICE=http,disk,cpu
Very simple answer: Yes.

Slightly longer answer: See the hobbit-alerts.cfg man page. The MAIL
command accepts multiple recipients separated with commas. The SERVICE
rule can use either a comma-separated list or a regular expression (then
you must put a '%' in front of the regex).


Henrik