Xymon Mailing List Archive search

Getting doubled alerts

list Henrik Størner
Thu, 6 Oct 2005 07:22:49 +0200
Message-Id: <user-03fd4195fa15@xymon.invalid>

On Wed, Oct 05, 2005 at 03:27:07PM -0700, Brehm, Scott wrote:
Is it normal to get two alert messages if an event matches two rules? 
Yes.
Is there a keyword to suppress multiple alert emails from the same event?
I've been running 4.0 for a while, but just getting in to configuring
alerts. My hobbit-alerts.cfg includes the following:
 
HOST=* SERVICE=conn
        MAIL user-43f0e15c2cc9@xymon.invalid COLOR=red
 
HOST=%atscm
        MAIL user-43f0e15c2cc9@xymon.invalid COLOR=red
        MAIL user-e7eda2829196@xymon.invalid COLOR=red
 
HOST=%atscs
        MAIL user-43f0e15c2cc9@xymon.invalid COLOR=red
        MAIL user-78aee4d399ab@xymon.invalid COLOR=red
 
I want alerts for any connection problems, but only want alerts for
other hosts if they come from two specific sets of hosts. 
As you've found out yourself, EXSERVICE=conn on the two host-specific
rules will do it. Instead, you could also use the keyword "STOP" with
the "conn" rule - like

 HOST=* SERVICE=conn
         MAIL user-43f0e15c2cc9@xymon.invalid COLOR=red STOP
  
This will make the alert-handler stop looking for recipients after your
general "conn" rule has been matched.


Henrik