Xymon Mailing List Archive search

bb hostname.testname "until OK"?

3 messages in this thread

list Kolbjørn Barmen · Mon, 14 Aug 2006 20:54:07 +0200 (CEST) ·
The man bb page says:

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 inter- preted as being in
seconds/minutes/hours/days respectively.  To disable all tests for a host,
use an asterisk "*" for TESTNAME.

So how do I disable "until OK" from the bb command?

PS: congrats with the release.. cheers, cheers! :)

-- 
Kolbjørn Barmen
UNINETT Driftsenter
list Henrik Størner · Mon, 14 Aug 2006 21:37:37 +0200 ·
quoted from Kolbjørn Barmen
On Mon, Aug 14, 2006 at 08:54:07PM +0200, Kolbjørn Barmen wrote:
The man bb page says:

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 inter- preted as being in
seconds/minutes/hours/days respectively.  To disable all tests for a host,
use an asterisk "*" for TESTNAME.

So how do I disable "until OK" from the bb command?
Send that command with DURATION set to "-1".
PS: congrats with the release.. cheers, cheers! :)
Thanks,
Henrik
list Charles Jones · Mon, 14 Aug 2006 12:42:59 -0700 ·
quoted from Kolbjørn Barmen
Kolbjørn Barmen wrote:
So how do I disable "until OK" from the bb command?

PS: congrats with the release.. cheers, cheers! :)
  
 From looking at the source code:
==============================================
                else if (strcmp(pwalk->name, "untilok") == 0) {
                        if (strcasecmp(pwalk->value, "on") == 0) {
                                duration = -1;
                                scale = 1;
                        }
=============================================

I would wager that setting the duration to -1 will do it.

-Charles