[hobbit] disable using command line

Rolf Schrittenlocher Schrittenlocher at rz.uni-frankfurt.de
Wed Jan 11 10:53:17 CET 2006


Merci beaucoup Frédéric!

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


-- 
Mit freundlichen Gruessen
Rolf Schrittenlocher

HRZ/BDV, Senckenberganlage 31, 60054 Frankfurt 
Tel: (49) 69 - 798 28908   Fax: (49) 69 798 2881
LBS: lbs-f at mlist.uni-frankfurt.de
Persoenlich: schritte at rz.uni-frankfurt.de





More information about the Xymon mailing list