Xymon Mailing List Archive search

Can Alerts Be Configured Based on Page-->Group?

list Ford Alan
Mon, 31 Oct 2011 22:58:16 +0000
Message-Id: <user-9d5fae274582@xymon.invalid>

Hi Stuart,
Yes that is one way you can do it.
Just got to work and looked up the man page for Xymon 4.3.5 and you can also alert on DISPLAYGROUP

## Extract

DISPLAYGROUP=groupstring Rule matching an alert by the text of the display-group (text following the group, group-only, group-except heading) in the hosts.cfg file. "groupstring" is the text for the group, stripped of any HTML tags. E.g. if you have this setup: 
group Web
10.0.0.1 www1.foo.com
10.0.0.2 www2.foo.com
group Production databases
10.0.1.1 db1.foo.com

Then the hosts in the Web-group can be matched with DISPLAYGROUP=Web, and the database servers can be matched with DISPLAYGROUP="Production databases". Note that you can also use regular expressions, e.g. DISPLAYGROUP=%database. If there is no group-setting for the host, use "DISPLAYGROUP=NONE". 


-----Original Message-----
From: Stuart, Ed [mailto:user-ec72a6de413c@xymon.invalid] Sent: Tuesday, 1 November 2011 1:29 AM
To: FORD Alan
Cc: xymon at xymon.com
Subject: RE: [Xymon] Can Alerts Be Configured Based on Page-->Group?
Thank-you for the suggestion. So then you are thinking about multiple
rules for each PAGE with specific IGNOREs for each group?
PAGE Groups
	IGNORE HOST="%(regex excluding servers in groups B & C)
	MAIL $GROUPATEAM
PAGE Groups
	IGNORE HOST="%(regex excluding servers in groups A & C)
	MAIL $GROUPBTEAM
PAGE Groups
	IGNORE HOST="%(regex excluding servers in groups A & B)
	MAIL $GROUPCTEAM
A messy way is to IGNORE the hosts you don't want. If possible use the
% and wild cards.
Sent from my iPhone
On 01/11/2011, at 12:37 AM, "Stuart, Ed" <user-ec72a6de413c@xymon.invalid>
wrote:
Is there a way to configure alerts based on membership in a group on a
page?  There is a page qualifier, but we would like to apply specific rules for servers in particular groups on pages.  If not, is there a way to apply rules to particular hosts on a page?

**Please apply a generous amount of all the usual disclaimers here.** 
This email is to be read subject to the email disclaimer located at
http://www.stanwell.com/email-disclaimer.aspx