[hobbit] Is there a way to "quietly" disable hosts that have NOTICE set?
Charles Jones
jonescr at cisco.com
Mon Sep 25 14:12:16 CEST 2006
That sends out NOTICE alerts though. If you are on call, do you want to
get paged at 3am every night when those services are put into MAINT
mode? Thats why I asked if there was a way to do a "silent" disable. I
basically need something that works exactly like the DOWNTIME option in
bb-hosts, except interactively.
-Charles
Francesco Duranti wrote:
> Directly from the man bb command :D
>
>
>
> disable HOSTNAME.TESTNAME DURATION <additional text>
> Disables a specific test for DURATION minutes. This
> will cause the status of this test to be listed as
> "blue" on the BBDISPLAY server, and no alerts for this
> host/test will be generated. If DURATION is given as
> a number followed by s/m/h/d, it is interpreted as being
> in seconds/minutes/hours/days respectively. To
> disable all tests for a host, use an asterisk "*" for
> TESTNAME.
>
> enable HOSTNAME.TESTNAME
> Re-enables a test that had been disabled.
>
>
> So you can execute bb hobbitserver "disable dbservername.* 2h Backup
> time" before shutting down the database and bb hobbitserver "enable
> dbserver.*" just at the end.
>
> Francesco
>
>
>
>> -----Original Message-----
>> From: Charles Jones [mailto:jonescr at cisco.com]
>> Sent: Monday, September 25, 2006 7:56 AM
>> To: hobbit at hswn.dk
>> Subject: [hobbit] Is there a way to "quietly" disable hosts
>> that have NOTICE set?
>>
>> I have the NOTICE flag set for all of my production hosts - I
>> want pages to go out if someone disables or enables any of them.
>>
>> However, when backups are done, the oracle databases are
>> brought down, which triggers an alert. If they are manually
>> disabled, the NOTICE message goes out which also wakes people
>> up for no reason.
>>
>> If I use DOWNTIME in bb-hosts, then I have to specify a
>> window which is guaranteed to be longer than the possible
>> time it could take to backup the databases (which is a
>> dynamic thing which will surely be wrong from time to time).
>> So what ends up happening is for example, I would specify an
>> hour of DOWNTIME, but the backups sometimes only take 30 minutes.
>> That means there is a 30 minute window where a real alert
>> would be masked, which is unacceptable in a production environment.
>>
>> I guess what I'm looking for, is a way that I can send a
>> commands to Hobbit via a shellscript (called from the db
>> backup script), that would put a host/services in maint mode
>> (disabled - blue dot), and NOT send a NOTICE page.
>>
>> -Charles
>>
>> To unsubscribe from the hobbit list, send an e-mail to
>> hobbit-unsubscribe at hswn.dk
>>
>>
>>
More information about the Xymon
mailing list