[hobbit] disable using command line

Frédéric Mangeant frederic.mangeant at steria.com
Wed Jan 11 10:44:14 CET 2006


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






More information about the Xymon mailing list