[hobbit] alerts not emailing

Bruce Lysik blysik at shutterfly.com
Fri Jan 28 23:43:59 CET 2005


> 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|blysik at shutterfly.com at 0
2005-01-28 14:38:15   Alert for cs01:cpu to blysik at shutterfly.com
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  <blysik at shutterfly.com>
Operations Engineer


> -----Original Message-----
> From: Henrik Stoerner [mailto:henrik at hswn.dk]
> Sent: Friday, January 28, 2005 2:34 PM
> To: hobbit at hswn.dk
> 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 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.
> 
> 
> 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
> 
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe at hswn.dk
> 
> 



More information about the Xymon mailing list