Hello all,
I can't seem to get any alerts to work. I have configured a very simple rule:
HOST=nemesis
MAIL kevin at domain.com.com <mailto:kevin at domain.com.com>
I purposely made something on that host go RED and I get no alerts. Please tell me where I made my mistake?
Thank you.
KEvin
On Sat, Jan 22, 2005 at 03:22:42PM -0500, Kevin Hanrahan wrote:
Hello all,
I can't seem to get any alerts to work. I have configured a very simple rule:
HOST=nemesis
MAIL kevin at domain.com.com <mailto:kevin at domain.com.com>
Leave out the "<mailto...>" stuff, it doesn't belong in any config-file.
But I have been doing some work on the alert module, so do try it out with the new version I'll release tomorrow. I still haven't decided if it's going to be "beta-6" or "release candidate 1".
Alerts in the current betas are rather flaky, unless you happen to set things up just the way I do.
Henrik
which is?? Would love to see a sanitized alerts cfg file.
Chris
--On January 22, 2005 11:03:41 PM +0100 Henrik Stoerner <henrik at hswn.dk> wrote:
| Alerts in the current betas are rather flaky, unless you happen to | set things up just the way I do.
In <FDB040C62C7D26CA3B1E09CC at ctbeers-laptop.local> "Christopher T. Beers" <ctbeers at syr.edu> writes:
--On January 22, 2005 11:03:41 PM +0100 Henrik Stoerner <henrik at hswn.dk> 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 henrik-aab11 at hswn.dk 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 henrik at hswn.dk REPEAT=15 RECOVERED COLORS=!purple MAIL henrik at hswn.dk REPEAT=1440 COLORS=purple
And a simple rule for testing alerts via a script.
SERVICE=test SCRIPT /home/henrik/bbalert.sh henrik at hswn.dk RECOVERED
Henrik
participants (3)
-
ctbeers@syr.edu
-
henrik@hswn.dk
-
Kevin@ewormhole.com