Xymon Mailing List Archive search

Combination of keywords in rules

list Henrik Størner
Wed, 6 Apr 2005 14:40:10 +0200
Message-Id: <user-6109d5e37d88@xymon.invalid>

On Wed, Apr 06, 2005 at 01:49:45PM +0200, Etienne Roulland wrote:
i'm trying to set rules with multiples conditions

like

"COLOR=red "and" SERVICE=* "and" DURATION>6m REPEAT=15m RECOVER"
  COLOR=red DURATION>6m RECOVERED
      MAIL user-47d72ce84f5e@xymon.invalid REPEAT=15m

will do what you want. The rule matching requires that all criteria
are met before a rule matches, so there's an implicit "and" between
each criteria.

"RECOVERED" is actually just a flag - if an alert message was sent
out, then the RECOVERED flag means that a recovery message will also
be sent.
Events are matching if COLOR is RED "OR" duration> 6m..

Don't know if i'm clear in my question...
It would probably help if you run 

   ~hobbit/server/bin/hobbitd_alert --test HOSTNAME SERVICE

for the host/service that is causing you headaches, and let us see
what the output is.


Regards,
Henrik