Xymon Mailing List Archive search

hobbit-alerts.cfg - Can HOST be within PAGE?

2 messages in this thread

list Ed Stuart · Tue, 1 Nov 2011 15:43:38 -0500 ·
In the hobbit-alerts.cfg file can a HOST line be withing a PAGE line to
select particular hosts based on what page they are on?  For example, if
we want to mail alerts for all the servers on the SERVERS page that
begin with the letters d or t and only the ones that are on the SERVERS
page would the following entries work?

PAGE=SERVERS
        HOST=%[dt].*\.ourdomain\.com
        MAIL $ADMINS SERVICE=disk,cpu,memory,procs DURATION>1h COLOR=red
RECOVERED REPEAT=8h FORMAT=PLAIN TIME=W:700:1900

**Please apply a generous amount of all the usual disclaimers here.**
list Steve Holmes · Tue, 1 Nov 2011 16:49:41 -0400 ·
That should work. I use similar constructions with no problem.
Steve
quoted from Ed Stuart

On Tue, Nov 1, 2011 at 4:43 PM, Stuart, Ed <user-ec72a6de413c@xymon.invalid>wrote:
**

In the hobbit-alerts.cfg file can a HOST line be withing a PAGE line to
select particular hosts based on what page they are on?  For example, if we
want to mail alerts for all the servers on the SERVERS page that begin with
the letters d or t and only the ones that are on the SERVERS page would the
following entries work?

PAGE=SERVERS
        HOST=%[dt].*\.ourdomain\.com
        MAIL $ADMINS SERVICE=disk,cpu,memory,procs DURATION>1h COLOR=red
RECOVERED REPEAT=8h FORMAT=PLAIN TIME=W:700:1900

**Please apply a generous amount of all the usual disclaimers here.**

-- 

If they give you ruled paper, write the other way. -Juan Ramon Jimenez,
poet, Nobel Prize in literature (1881-1958)

Truth never damages a cause that is just. -Mohandas Karamchand Gandhi
(1869-1948)