[hobbit] alerts not emailing
Henrik Stoerner
henrik at hswn.dk
Fri Jan 28 23:34:11 CET 2005
On Fri, Jan 28, 2005 at 02:09:59PM -0800, Bruce Lysik wrote:
>
> Here's the cpu alert coming in:
>
> @@page#2448|1106949175.057403|172.16.150.1|cs01|cpu|172.16.150.1|1106950975|red|red|1106849049|cs|370516
[snip]
> Here's the hobbit-alerts.cfg definition:
>
> HOST=cs01
> MAIL blysik at shutterfly.com SERVICE=cpu REPEAT=5m COLOR=red
This one should trigger all-right, and if I copy your alert-config
into my own config-file it does send out alerts (in fact, I'm afraid
I sent some of them to you because I forgot to change the e-mail
address in the config file).
Could you try this:
Login as hobbit
Cut-and-paste the alert message into a file "alert.msg", with the
"@@page..." as the first line, and the "@@" as the last line.
The run these commands:
./server/bin/bbcmd --env=server/etc/hobbitserver.cfg sh
# You now have a shell with the Hobbit environment set
hobbitd_alert --debug <alert.msg
You should see messages like these:
2005-01-28 23:21:47 send_alert cs01:cpu state 0
2005-01-28 23:21:47 criteriamatch cs01:cpu cs01:(NULL):(NULL)
2005-01-28 23:21:47 Checking default color setting 70 against 5 gives 1
2005-01-28 23:21:47 Found a first matching rule
2005-01-28 23:21:47 criteriamatch cs01:cpu (NULL):(NULL):cpu
2005-01-28 23:21:47 Checking explicit color setting 10000000040 against 5 gives 1
2005-01-28 23:21:47 repeat cs01|cpu|mail|blysik at shutterfly.com at 0
2005-01-28 23:21:47 Alert for cs01:cpu to blysik at shutterfly.com
2005-01-28 23:21:47 No more secondary matching rule
Henrik
More information about the Xymon
mailing list