[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] maint.pl with no email
On Fri, Feb 25, 2005 at 07:32:35PM -0500, Asif Iqbal wrote:
> On Fri, Feb 25, 2005 at 11:22:34PM, Henrik Stoerner wrote:
> >
> > Frankly, this part of maint.pl is just plain broken.
>
> Well I had to add/modify couple things to make it work as it was
> with Bigbrother.
[snip the hack]
> I am positive Henrik has a cooler solution for this.
Perhaps ... I've been cooking up something today that might be useful.
Instead of the "page notify-admin" recipient, I implemented a new
command in the Hobbit protocol called "notify". When you send a
"notify" command to the hobbit server, you also pass it a hostname,
a testname, and a text message. Hobbit then sends this message through
the alert module just as a normal alert-message about a status that
has gone red - and the message is sent out using the normal methods
configured for the recipients for that particular host+test
combination.
So what happens is that when you disable a test, everyone that would
normally receive an alert about that test will get a message that it
has been disabled.
And the same when it is re-enabled, of course.
I think that makes more sense than sending to the generic
"notify-admin" recipient.
Henrik