Xymon Mailing List Archive search

hobbit alerts

list Henrik Størner
Sun, 23 Jan 2005 08:01:19 +0000 (UTC)
Message-Id: <csvlke$vsq$user-e356fad9864f@xymon.invalid>

In <user-f86c683a295b@xymon.invalid> "Christopher T. Beers" <user-96213c045646@xymon.invalid> writes:

--On January 22, 2005 11:03:41 PM +0100 Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> 
wrote:
| Alerts in the current betas are rather flaky, unless you happen to
| set things up just the way I do.
which is??  Would love to see a sanitized alerts cfg file.
It's not so much a question of how to setup the hobbit-alerts.cfg
file, but more of doing things in the right sequence; since the
current betas only trigger alerts when a status changes, you need the
alert configuration to be setup and hobbitd running before the status
goes red.

But since you asked, here's the alert config I use for the sites
shown on http://www.hswn.dk/hobbit/

# Two routers I was monitoring for just ping.
HOST=router1.aab11.dk,router2.aab11.dk SERVICE=conn
        MAIL user-9cf7e6d10c2e@xymon.invalid REPEAT=60

# This is actually the most important rule to me. All hosts
# except the listed ones match this rule, and I get alerts
# for all services except "dnsinfo". red and yellow alerts
# repeat every 15 minutes, purple ones only once a day.
HOST=!pto.linuxbog.dk,!router1.aab11.dk,!router2.aab11.dk SERVICE=!dnsinfo
        MAIL user-ce4a2c883f75@xymon.invalid REPEAT=15 RECOVERED COLORS=!purple
        MAIL user-ce4a2c883f75@xymon.invalid REPEAT=1440 COLORS=purple

# And a simple rule for testing alerts via a script.
SERVICE=test
        SCRIPT /home/henrik/bbalert.sh user-ce4a2c883f75@xymon.invalid RECOVERED


Henrik