Xymon Mailing List Archive search

Host Groups in hobbit-alerts.cfg as per BB?

list Rick Waegner
Tue, 18 Jan 2005 09:21:13 -0600
Message-Id: <1106061672.12975.4.camel@rinux>

Is it also possible to have page groups setup the same way?

as in:

HOST=* SERVICE=conn REPEAT=10 RECOVERED
MAIL=
"user-bb555dc64cde@xymon.invalid,user-f5cd6d1f5b53@xymon.invalid,user-53ac79997b90@xymon.invalid" DURATION>30 COLOR=red


Rick

On Tue, 2005-01-18 at 00:29, Henrik Stoerner wrote:
On Tue, Jan 18, 2005 at 02:03:40PM +1300, Andy France wrote:
Is it possible to create "host groups" for alerting as per the
bbwarnsetup.cfg and bbwarnrules.cfg files in Big Brother?
Yes. There are actually two way you can do that - the documented
one, and the simple one :-)
The hobbit-alerts.cfg file mentions I can use regular expression type
wildcards, but some servers for which I want the same alerting do not
follow any such pattern.  Does using "%hostA1|hostA2|hostB3|otherhost" fake
the grouping?
That's the documented way of doing it, yes. Although your example is
not quite correct - it should be "%(hostA1|hostA2|hostB3|otherhost)".

The simple way is this: "hostA1,hostA2,hostB3,otherhost"

Note: You cannot mix the two - it's either a regular expression,
or a simple list.


Regards,
Henrik