Xymon Mailing List Archive search

alerts not emailing

list Bruce Lysik
Fri, 28 Jan 2005 14:43:59 -0800
Message-Id: <user-a4146b20579e@xymon.invalid>

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
Sure thing:

sh-2.05b$ hobbitd_alert --debug <alerts.msg
2005-01-28 14:38:15 hobbitd_alert: Got message 2448 @@page#2448|1106949175.057403|172.16.150.1|cs01|cpu|172.16.150.1|1106950975|red|red|1106849049|cs|370516
2005-01-28 14:38:15 Got page message from cs01:cpu
2005-01-28 14:38:15 Alert status changed from 0 to 1
2005-01-28 14:38:15 Found no first matching rule
2005-01-28 14:38:15 1 alerts to go
2005-01-28 14:38:15 send_alert cs01:cpu state 0
2005-01-28 14:38:15 criteriamatch cs01:cpu cs01:(NULL):(NULL)
2005-01-28 14:38:15 criteriamatch cs01:cpu cs01:(NULL):(NULL)
2005-01-28 14:38:15 Checking default color setting 70 against 5 gives 1
2005-01-28 14:38:15 Found a first matching rule
2005-01-28 14:38:15 criteriamatch cs01:cpu (NULL):(NULL):cpu
2005-01-28 14:38:15 Checking explicit color setting 10000000040 against 5 gives 1
2005-01-28 14:38:15 No more secondary matching rule
2005-01-28 14:38:15 hobbitd_alert: Out-of-sync data in channel: 

2005-01-28 14:38:15 Checking default color setting 70 against 5 gives 1
2005-01-28 14:38:15 Found a first matching rule
2005-01-28 14:38:15 criteriamatch cs01:cpu (NULL):(NULL):cpu
2005-01-28 14:38:15 Checking explicit color setting 10000000040 against 5 gives 1
2005-01-28 14:38:15   repeat cs01|cpu|mail|user-4e63a10f8934@xymon.invalid at 0
2005-01-28 14:38:15   Alert for cs01:cpu to user-4e63a10f8934@xymon.invalid
sh-2.05b$ 2005-01-28 14:38:15 No more secondary matching rule

And that actually sent me an alert email.  Huh.  So how come no email normally?

--
Bruce Z. Lysik  <user-4e63a10f8934@xymon.invalid>
Operations Engineer

-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Friday, January 28, 2005 2:34 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] alerts not emailing


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 user-4e63a10f8934@xymon.invalid 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.


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|user-4e63a10f8934@xymon.invalid at 0
2005-01-28 23:21:47   Alert for cs01:cpu to user-4e63a10f8934@xymon.invalid
2005-01-28 23:21:47 No more secondary matching rule


Henrik