[hobbit] maint.pl with no email
Eeeeewwww.... Dropping support for the BB "page" protocol for messages will break a lot of things that I make use of for administrative events alerts that aren't associated with a particular host or status.
Is there any way that this can be worked around??
At the very least, be able to configure blue status events to send emails to a defined address (rather than one of the pager addresses for red or yellow)?
Brent B McCrackin UNIX Systems Specialist - Bell Sympatico Brent.McCrackin at Bell.ca PH: 416-353-0692 "Serenity through viciousness."
-----Original Message----- From: Henrik Stoerner [mailto:henrik at hswn.dk] Sent: February 25, 2005 8:24 AM To: hobbit at hswn.dk Subject: Re: [hobbit] maint.pl with no email
On Fri, Feb 25, 2005 at 07:49:46AM -0500, Asif Iqbal wrote:
In bigbrother the following code of maint.pl were able to send a page.
"&bbsend("now","$bbpager","page notify-admin.maint enable\n\nThe f ollowing at jobs that were scheduled to disable tests have been CANCELLED\nDate: " . &POSIX_time( $nowtime) . "\n$cancelledby$notification");"
But in Hobbit I tried with the same code and it did not send any page.
That is because Hobbit doesn't support the BB "page" protocol. If you send hobbitd such a request, it is silently dropped. I've updated the bb man-page to reflect this.
Alerts in Hobbit happen as a result of a "status" message. The magic "notify-admin" hostname does not exist in Hobbit.
I have HOST=notify-admin SERVICE=maint MAIL my.email at here
And when I did the ./bin/bbcmd hobbitd_alert --test notify-admin maint, it matches the rule fine.
If you had a host called "notify-admin" with a "maint" status column, then this rule would control alerts for that status.
Henrik
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Mon, Feb 28, 2005 at 02:51:49PM, brent.mccrackin at bell.ca wrote:
Eeeeewwww.... Dropping support for the BB "page" protocol for messages will break a lot of things that I make use of for administrative events alerts that aren't associated with a particular host or status.
If you just replace the word page with status it will just work.
Is there any way that this can be worked around??
At the very least, be able to configure blue status events to send emails to a defined address (rather than one of the pager addresses for red or yellow)?
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu "It is not the strongest of the species that survives, not the most intelligent, but the one most responsive to change." - Charles Darwin
On Mon, Feb 28, 2005 at 02:51:49PM -0500, brent.mccrackin at bell.ca wrote:
Eeeeewwww.... Dropping support for the BB "page" protocol for messages will break a lot of things that I make use of for administrative events alerts that aren't associated with a particular host or status.
Sorry, but the "page" command is dead.
Is there any way that this can be worked around??
At the very least, be able to configure blue status events to send emails to a defined address (rather than one of the pager addresses for red or yellow)?
I'm sure the "notify" command added in RC4 is what you are looking for. See "man bb" for details on the syntax.
Regards, Henrik
participants (3)
-
brent.mccrackin@bell.ca
-
henrik@hswn.dk
-
iqbala-hobbit@qwestip.net