Xymon Mailing List Archive search

disable using command line

list Rolf Schrittenlocher
Wed, 11 Jan 2006 10:53:17 +0100
Message-Id: <user-b7257b96f181@xymon.invalid>

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: (XX) XX - XXX XXXXX   Fax: (XX) XX XXX XXXX
LBS: user-1e39a1813094@xymon.invalid
Persoenlich: user-6ea8e907e200@xymon.invalid