Xymon Mailing List Archive search

Alerts not working as expected

2 messages in this thread

list David Company · Fri, 24 Jul 2020 08:47:31 +0200 ·
Hi,

My Alerts are Not Working as expected.  I have The following in my
hosts.cfg and my alerts.cfg.  The result I'm after is that the Servers in
the DoNotAlert subpages should not alert but the pages in subpage Alerts
must.  Currently, they are all alerting despite the EXPAGE setting in the
alerts.cfg file.  When I switch off any of them the conn sends an alert no
matter what permutations I try.  Any help would be appreciated.


*host.cfg*page Prod  Prod Hosts

subpage Alert Alert
0.0.0.0         .default.                               # NOPROPRED:*
NOPROPPURPLE:* NOPROPYELLOW:*
127.0.0.1    prod1.domain.com            # conn

subpage DoNotAlert DoNotAlert
127.0.0.2    prod2.domain.com            # conn

subpage DoNotAlert1 DoNotAlert1
127.0.0.3    prod3.domain.com            # conn

*alerts.cfg*
COLOR=red EXPAGE=Prod/DoNotAlert EXPAGE=Prod/DoNotAlert1
        SCRIPT /usr/share/xymon-client/ext/Notifications/notifications.sh
<emailaddress> REPEAT=1h TIME=W:0700:1700
list Scot Kreienkamp · Fri, 24 Jul 2020 13:21:27 +0000 ·
I think you can only have one EXPAGE argument, and it must be structured like this:

EXPAGE=%(Prod/DoNotAlert*)

OR

EXPAGE=Prod/DoNotAlert,Prod/DoNotAlert1

The alerts can be found on the info page.  If you get it correct they will disappear from that page.  Don?t forget it may take a while for Xymon to reload the config file after a change unless you restart it.


Scot Kreienkamp | Senior Systems Engineer | La-Z-Boy Corporate
One La-Z-Boy Drive | Monroe, Michigan 48162 | ? XXX-XXX-XXXX | |  ? X-XXX-XXX-XXXX  | ? user-9678697f1438@xymon.invalid
www.la-z-boy.com<http://www.la-z-boy.com>;  | facebook.com/lazboy<http://facebook.com/lazboy>;  | twitter.com/lazboy<http://twitter.com/lazboy>; | youtube.com/lazboy<http://youtube.com/lazboy>;
[cid:4C-lzbVertical_Tag_400px_d8b9412e-f3ea-46a1-99dc-a7c57261e11e.jpg]
From: Xymon <xymon-bounces at xymon.com> On Behalf Of David Company
Sent: Friday, July 24, 2020 2:48 AM
To: xymon at xymon.com
Subject: [Xymon] Alerts not working as expected

ATTENTION:   This email was sent to La-Z-Boy from an external source.     Be vigilant when opening attachments or clicking links.
quoted from David Company
Hi,

My Alerts are Not Working as expected.  I have The following in my hosts.cfg and my alerts.cfg.  The result I'm after is that the Servers in the DoNotAlert subpages should not alert but the pages in subpage Alerts must.  Currently, they are all alerting despite the EXPAGE setting in the alerts.cfg file.  When I switch off any of them the conn sends an alert no matter what permutations I try.  Any help would be appreciated.

host.cfg
page Prod  Prod Hosts
subpage Alert Alert
0.0.0.0         .default.                               # NOPROPRED:* NOPROPPURPLE:* NOPROPYELLOW:*
127.0.0.1    prod1.domain.com<http://prod1.domain.com>;            # conn

subpage DoNotAlert DoNotAlert
127.0.0.2    prod2.domain.com<http://prod2.domain.com>;            # conn

subpage DoNotAlert1 DoNotAlert1
127.0.0.3    prod3.domain.com<http://prod3.domain.com>;            # conn

alerts.cfg
COLOR=red EXPAGE=Prod/DoNotAlert EXPAGE=Prod/DoNotAlert1
        SCRIPT /usr/share/xymon-client/ext/Notifications/notifications.sh <emailaddress> REPEAT=1h TIME=W:0700:1700

This message is intended only for the individual or entity to which it is addressed. It may contain privileged, confidential information which is exempt from disclosure under applicable laws. If you are not the intended recipient, you are strictly prohibited from disseminating or distributing this information (other than to the intended recipient) or copying this information. If you have received this communication in error, please notify us immediately by e-mail or by telephone at the above number. Thank you.