Xymon Mailing List Archive search

Annyoing logic in alerts.cfg

list Even Hauge Juberg
Mon, 27 Mar 2017 12:04:23 +0000
Message-Id: <user-e220b6a94d11@xymon.invalid>

Hi!


I've been using Xymon for years and have recently begun to play around with the alerts.cfg, however, there is something I have been banging my head against the wall with, for weeks now. So I am reaching out to this list in the hopes that someone out there might have the key to save me from eternal frustration.


*snippet from my alerts.cfg*


HOST=* RECOVERED=1
        IGNORE HOST=*

HOST=one-host SERVICE=http
        MAIL user-9c417231eeaa@xymon.invalid COLOR=red
        MAIL user-9c417231eeaa@xymon.invalid DURATION>5 COLOR=red


What I'm trying to accomplish is to stop the "I'm OK - recovered" messages. Those messages are irrelevant, so I want those filtered out. The problem though, is that the logic is completely off on this point. The first rule for some reason takes presedense, even though I have explicitly told it to only use that rule IF the host has recovered, no?

I want it to skip that rule, if it has not yet recovered, send mail to the first user immediately, then to the other user after 5 minutes, but leave those users alone if the service is OK again. Is there a way to accomplish this?

Sincerely,
Even