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 status cs01.cpu red Fri Jan 28 13:52:54 PST 2005 up: 57 day(s), 1 users, 35 procs, load=1761 LOAD AVG on cs01 is 1761 @@ Here's the hobbit-alerts.cfg definition: HOST=cs01 MAIL blysik at shutterfly.com SERVICE=cpu REPEAT=5m COLOR=red hobbitd_alert shows up as running. Nothing in page.log. -- Bruce Z. Lysik <blysik at shutterfly.com> Operations Engineer
-----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: Friday, January 28, 2005 5:25 AM To: hobbit at hswn.dk Subject: Re: [hobbit] alerts not emailing
On Fri, Jan 28, 2005 at 12:05:20PM -0000, Morris, Chris (Shared Services) wrote:
On Friday, January 28, 2005 1:54 AM, Bruce Lysik wrote :-
But I fail to get any alerts sent out. I've confirmed that email is working from this machine, and nothing shows up in /var/log/hobbit/page.log. (And nothing relevant to this issue in any of the logs there.)
Any help would be appreciated.
I am having the same problem. A disk exceeds the Alarm threshold and goes red on the hobbit display but hobbitd_alert takes no action to send a mail.
Could you try running the following command (login as the hobbit user):
~/server/bin/bbcmd --env=server/etc/hobbitserver.cfg hobbitd_channel --channel=page cat
Let it run for 5-10 minutes (long any for the critical status to be updated) and let me know if there's any output.
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
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
participants (2)
-
blysik@shutterfly.com
-
henrik@hswn.dk