Xymon Mailing List Archive search

Alert.cfg PAGE directive

list Roland Soderstrom
Wed, 28 Dec 2011 02:27:51 +0000
Message-Id: <user-5147590dffb2@xymon.invalid>

Yes, I have.

- Roland

-----Original Message-----
From: Asif Iqbal [mailto:user-6f4b51ac2a40@xymon.invalid] 
Sent: Wednesday, December 28, 2011 12:41 PM
To: Roland Soderstrom
Cc: xymon at xymon.com
Subject: Re: [Xymon] Alert.cfg PAGE directive

On Tue, Dec 27, 2011 at 7:31 PM, Roland Soderstrom
<user-0cec9512a49f@xymon.invalid> wrote:
Hi,

Tried setting just the PAGE
Ie.
PAGE=OPS
   SCRIPT /usr/local/xymon/server/ext/html_mail.pl user-12b45993108e@xymon.invalid FORMAT=PLAIN REPEAT=900 RECOVERED
Didn't work, same issue.
do you have a dir like

  server/www/OPS/index.html

under ~xymon or wherever your xymon server dir is ?

Setting it explicitly works fine
Ie.
$OPSHOSTS=host1|host2|host3|host4|host5
HOST=%$OPSHOSTS SERVICE=%(cluster|app_test|oracle_test|conn|cpu|disk|procs)
   SCRIPT /usr/local/xymon/server/ext/html_mail.pl user-12b45993108e@xymon.invalid FORMAT=PLAIN REPEAT=900 RECOVERED

For me it is just that the PAGE directive doesn't work as I'm expecting.

- Roland


-----Original Message-----
From: Asif Iqbal [mailto:user-6f4b51ac2a40@xymon.invalid]
Sent: Wednesday, December 28, 2011 9:12 AM
To: Roland Soderstrom
Cc: xymon at xymon.com
Subject: Re: [Xymon] Alert.cfg PAGE directive

On Tue, Dec 27, 2011 at 4:58 PM, Roland Soderstrom
<user-0cec9512a49f@xymon.invalid> wrote:
Hi,


Setting up alerts for the OPS, so I added these lines to alert.cfg


$OPSHOSTS=&(host1|host2|host3|host4|host5)

HOST=$OPSHOSTS PAGE=OPS
you want it like this

$OPSHOSTS=host1|host2|host3|host4|host5
HOST=%$OPSHOSTS

OR
PAGE=OPS

            SCRIPT /usr/local/xymon/server/ext/html_mail.pl user-12b45993108e@xymon.invalid
FORMAT=PLAIN REPEAT=900 RECOVERED


We have many hosts but the OPS just monitor the PRODUCTION ones.

And they also got just a subset of tests.

This page is defined in hosts.cfg

page OPS OPS

group-only cluster|app_test|oracle_test|conn|cpu|disk|procs Production

10.0.0.1      host1

10.0.0.2      host2

10.0.0.3      host3

10.0.0.4      host4

10.0.0.5      host5


This seems to work quite well except that the alert.cfg PAGE=OPS alerts on
any alert on any of the hosts on that page.

It doesn't alert on other hosts so that works.

ex. They get alerts on msg but that is not defined as a test in the
group-only directive on the OPS page.

It confuses them a lot because they get an alert mail but their page is
still green...


I thought PAGE should only alert on the group-only tests defined in
hosts.cfg.

Is this a bug or feature?


-      Roland


Ps. Henrik there is a typo in alerts.cfg on line 70

                    hobbit-clients.cfg configuration

--
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
-- 
Asif Iqbal
PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?