Xymon Mailing List Archive search

alert color triggers

2 messages in this thread

list Alan Sparks · Sun, 21 Aug 2005 20:44:38 -0600 ·
Have a simple rule in hobbit-alerts.cfg:
HOST=%.*
        SCRIPT /usr/lib/hobbit/server/ext/pg/cfrun cfrun FORMAT=SCRIPT
REPEAT=10
        MAIL bb-pg-oncall FORMAT=TEXT REPEAT=60 DURATION>5

I note that these trigger on a yellow status, in addition to red or purple.
I have ALERTCOLORS="red,purple" defined in hobbitserver.cfg.
Note also I am using the BB client, not the Hobbit client.

Does ALERTCOLORS have an effect?
If not, what is the correct format to filter out yellow alerts, and just
trigger on red and purple?

Thanks.
-Alan


-- 
Alan Sparks, UNIX/Linux Systems Integration and Administration
<user-8f2174fd8b66@xymon.invalid>
list Henrik Størner · Wed, 28 Sep 2005 10:28:29 +0000 (UTC) ·
quoted from Alan Sparks
In <user-4998b72f4175@xymon.invalid> Alan Sparks <user-8f2174fd8b66@xymon.invalid> writes:
Have a simple rule in hobbit-alerts.cfg:
HOST=%.*
       SCRIPT /usr/lib/hobbit/server/ext/pg/cfrun cfrun FORMAT=SCRIPT
REPEAT=10
       MAIL bb-pg-oncall FORMAT=TEXT REPEAT=60 DURATION>5
I note that these trigger on a yellow status, in addition to red or purple.
I have ALERTCOLORS="red,purple" defined in hobbitserver.cfg.
Note also I am using the BB client, not the Hobbit client.
I've tried reproducing this, but cannot - if I have ALERTCOLORS="red,purple"
in hobbitserver.cfg, I do not get any yellow alerts.

What happens if you run
  bbcmd hobbitd_alert --test HOSTNAME SERVICE 10 yellow 


Regards,
Henrik