Xymon Mailing List Archive search

Alert.cfg PAGE directive

6 messages in this thread

list Roland Soderstrom · Tue, 27 Dec 2011 21:58:34 +0000 ·
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
            SCRIPT /usr/local/xymon/server/ext/html_mail.pl user-12b45993108e@xymon.invalid<mailto: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
list Asif Iqbal · Tue, 27 Dec 2011 17:12:24 -0500 ·
On Tue, Dec 27, 2011 at 4:58 PM, Roland Soderstrom
quoted from 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
quoted from Roland Soderstrom
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?
list Roland Soderstrom · Wed, 28 Dec 2011 00:31:08 +0000 ·
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.

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
quoted from Asif Iqbal


-----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?
list Roland Soderstrom · Wed, 28 Dec 2011 00:36:54 +0000 ·
BTW, Running 4.3.5 on Solaris 10

- Roland
quoted from Roland Soderstrom

-----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 user-12b45993108e@xymon.invalid 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 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?
list Asif Iqbal · Tue, 27 Dec 2011 20:40:32 -0500 ·
On Tue, Dec 27, 2011 at 7:31 PM, Roland Soderstrom
quoted from 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 ?
quoted from Roland Soderstrom

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?
list Roland Soderstrom · Wed, 28 Dec 2011 02:27:51 +0000 ·
Yes, I have.
quoted from Asif Iqbal

- 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?