[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [hobbit] maint.pl with no email



On Mon, Feb 28, 2005 at 03:00:56PM, brent.mccrackin (at) bell.ca wrote:
> And if the groups that need to be notified that a service is disabled
> for maintenance are different from the people that need to be notified
> of an outage?

I would try the 'NOTIFY'. It is in RC4. 

> 
> For example, when maintenance is started we don't want the on-call pager
> being alerted that a service has been disabled for maintenance - the
> purpose of a blue dot is so the person carrying the pager isn't woken up
> unnecessarily.  We do want the admins group to be notified that the
> maintenance has started, though.
> 
> ---
> 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 26, 2005 12:12 PM
> To: hobbit (at) hswn.dk
> Subject: 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
> 
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
> 
> 
> 
> 
> To unsubscribe from the hobbit list, send an e-mail to
> hobbit-unsubscribe (at) hswn.dk
> 
> 

-- 
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