[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] disable using command line
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] disable using command line
- From: Frédéric Mangeant <frederic.mangeant (at) steria.com>
- Date: Wed, 11 Jan 2006 10:44:14 +0100
- References: <43C4D14A.4090706@rz.uni-frankfurt.de>
- User-agent: Thunderbird 1.5 (Windows/20051201)
Rolf Schrittenlocher a écrit :
Hi,
I've searched the archive (pooh, so many entries for "disble") and the
help-pages, but I didn't find it:
How can I disable tests on the command line (I want to do this by cron)?
Hi Rolf
you can find this in the "bb" manpage :
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.
You can even schedule this :
MY_DATE=`date +%s --date=tomorrow
$BB localhost "schedule $MY_DATE disable $MY_HOST.$MY_TEST $MY_DURATION
$MY_REASON"
--
Frédéric Mangeant
Steria EDC Sophia-Antipolis