BTW, Running 4.3.5 on Solaris 10
- Roland
-----Original Message----- From: xymon-bounces at xymon.com [mailto:xymon-bounces at xymon.com] On Behalf Of Roland Soderstrom Sent: Wednesday, December 28, 2011 11:31 AM To: xymon at xymon.com Subject: Re: [Xymon] Alert.cfg PAGE directive
Hi,
Tried setting just the PAGE Ie. PAGE=OPS SCRIPT /usr/local/xymon/server/ext/html_mail.pl ops at example.com FORMAT=PLAIN REPEAT=900 RECOVERED Didn't work, same issue.
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 ops at example.com 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:vadud3 at gmail.com] 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 <Rolands at logicaltech.com.au> 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 ops at example.com 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
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon
-- 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?
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon