Xymon Mailing List Archive search

how to define a catch-all in hobbit-alerts.cfg

list Henrik Størner
Wed, 21 Oct 2009 20:30:17 +0000 (UTC)
Message-Id: <hbnr0p$peh$user-c7ef74bba0ce@xymon.invalid>

In <user-8dab721eebe5@xymon.invalid> Bill Wagner <user-5db7d172e22d@xymon.invalid> writes:
I have rules defined for many of my 300+ hosts ( a mix of windows and unix servers scattered throughout, and interleaved across,  multiple pages.  I want to define a default rule for hosts so that, for example, every conn alert goes to my unix administrators.  I have experimented with several solutions which do not yield the desired result.  e.g.:
HOST=* EXHOST=<>  # I can't explicitly list all hosts (too many) and tried macros consisting of wildcard host names
  MAIL ...
HOST=* EXHOST=<>
   MAIL ... UNMATCHED
if I use only HOST=* then I end up with multiple (sometimes redundant) recipients for some hosts and no recipients for hosts not previously explicitly defined.

Not sure if I understand you correctly, but I *think* you want a
default rule that triggers only if there are no other rules that
apply. Correct ?

In that case, the following should do it:

	HOST=* SERVICE=conn
		MAIL user-4d430f56ac28@xymon.invalid UNMATCHED

The UNMATCHED keyword means that this alert only triggers if no other
rules applied.


Regards,
Henrik