Xymon Mailing List Archive search

Multiple yellow to red

8 messages in this thread

list Galen Johnson · Wed, 18 Apr 2007 16:11:13 -0400 ·
Hey,

I'll admit I haven't put a lot of legwork into this but...is it possible to configure hobbit to go red on a test after a certain number of cycles at yellow?  I have some tests that I don't mind if they are yellow for small period but if they are there too long I need to know.

I could probably handle this with a script but it'd be nice if hobbit could handle it out of the box...maybe extend COLOR or DURATION...

HOST=* COLOR=3*yellow
	blah blah blah
	MAIL user-ef86c43926b6@xymon.invalid

That would alert after it was yellow for 3 cycles...or would a DURATION alert work...hurmmmmmm...

=G=
list Larry Barber · Wed, 18 Apr 2007 15:17:42 -0500 ·
For network tests, look for "badTEST" in the bb-hosts man page.

Thanks,
Larry Barber
quoted from Galen Johnson

On 4/18/07, Galen Johnson <user-87f955643e3d@xymon.invalid> wrote:
Hey,

I'll admit I haven't put a lot of legwork into this but...is it possible
to configure hobbit to go red on a test after a certain number of cycles at
yellow?  I have some tests that I don't mind if they are yellow for small
period but if they are there too long I need to know.

I could probably handle this with a script but it'd be nice if hobbit
could handle it out of the box...maybe extend COLOR or DURATION...

HOST=* COLOR=3*yellow
        blah blah blah
        MAIL user-ef86c43926b6@xymon.invalid

That would alert after it was yellow for 3 cycles...or would a DURATION
alert work...hurmmmmmm...

=G=

list Henrik Størner · Wed, 18 Apr 2007 22:19:55 +0200 ·
quoted from Galen Johnson
On Wed, Apr 18, 2007 at 04:11:13PM -0400, Galen Johnson wrote:
I'll admit I haven't put a lot of legwork into this but...is it possible to configure hobbit to go red on a test after a certain number of cycles at yellow?  I have some tests that I don't mind if they are yellow for small period but if they are there too long I need to know.
Use the "badTEST" setting in bb-hosts (see the man-page). This delays
a yellow or red status from appearing until it has stayed yellow (or
red) for a number of test cycles. So you could use this to suppress the
yellow status until it had been yellow for some time, so when it does
turn yellow you know this is something you have to handle.

Or if your custom test reported a "red" status, you could make it go
yellow for the first 5 test cycles, and red after that.


Henrik
list Henrik Størner · Wed, 18 Apr 2007 22:24:46 +0200 ·
quoted from Henrik Størner
On Wed, Apr 18, 2007 at 10:19:55PM +0200, Henrik Stoerner wrote:
On Wed, Apr 18, 2007 at 04:11:13PM -0400, Galen Johnson wrote:
I'll admit I haven't put a lot of legwork into this but...is it > possible to configure hobbit to go red on a test after a certain > number of cycles at yellow?  I have some tests that I don't mind > if they are yellow for small period but if they are there too long > I need to know.
Use the "badTEST" setting in bb-hosts (see the man-page). 
Oops ... as Galen pointed out, this works for network tests only.
Mental note to self: Must move that into the generic code.


Henrik
list Galen Johnson · Wed, 18 Apr 2007 16:31:27 -0400 ·
Wish I could take credit for that but Larry pointed that out...it'd be great if this were in the generic code, though.

=G= 
quoted from Henrik Størner
-----Original Message-----
From: Henrik Stoerner [mailto:user-ce4a2c883f75@xymon.invalid] Sent: Wednesday, April 18, 2007 4:25 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Multiple yellow to red

On Wed, Apr 18, 2007 at 10:19:55PM +0200, Henrik Stoerner wrote:
On Wed, Apr 18, 2007 at 04:11:13PM -0400, Galen Johnson wrote:
I'll admit I haven't put a lot of legwork into this but...is it > possible to configure hobbit to go red on a test after a certain > number of cycles at yellow?  I have some tests that I don't mind if > they are yellow for small period but if they are there too long I > need to know.
Use the "badTEST" setting in bb-hosts (see the man-page). 
Oops ... as Galen pointed out, this works for network tests only.
Mental note to self: Must move that into the generic code.


Henrik
list Galen Johnson · Wed, 18 Apr 2007 16:35:01 -0400 ·
Looking at that in the bb-hosts manpage...
 
 badTEST[-weekdays-starttime-endtime]:x:y:z
              Normally   when  a  network  test  fails,  the  status  changes  to  red  immediately.   With  a
              "badTEST:x:y:z" tag this behaviour changes:
              * While "z" or more successive tests fail, the column goes RED.
              * While "y" or more successive tests fail, but fewer than "z", the column goes YELLOW.
              * While "x" or more successive tests fail, but fewer than "y", the column goes CLEAR.
              * While fewer than "x" successive tests fail, the column stays GREEN.
 
This says "when it fails"...I'm looking for "when it stays in this state"...where state is definable (maybe default is red)...
 
=G=
quoted from Larry Barber


From: Larry Barber [mailto:user-6ef9c2864140@xymon.invalid] 
Sent: Wednesday, April 18, 2007 4:18 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Multiple yellow to red


For network tests, look for "badTEST" in the bb-hosts man page.

Thanks,
Larry Barber


On 4/18/07, Galen Johnson < user-87f955643e3d@xymon.invalid <mailto:user-87f955643e3d@xymon.invalid> > wrote: 

	Hey,
	
	I'll admit I haven't put a lot of legwork into this but...is it possible to configure hobbit to go red on a test after a certain number of cycles at yellow?  I have some tests that I don't mind if they are yellow for small period but if they are there too long I need to know. 
	
	I could probably handle this with a script but it'd be nice if hobbit could handle it out of the box...maybe extend COLOR or DURATION...
	
	HOST=* COLOR=3*yellow
	        blah blah blah
	        MAIL user-ef86c43926b6@xymon.invalid
	
	That would alert after it was yellow for 3 cycles...or would a DURATION alert work...hurmmmmmm...
	
	=G=
list Gary Baluha · Fri, 7 Sep 2007 11:11:43 -0400 ·
It would be nice if the manpage expanded on what "TEST" in "badTEST" can
be.  I've confirmed "badssh" and "badhttp" work, but I haven't yet
determined what else works with it.  Does "badconn" work, for instance?  Or
is it really "badTCP-TEST"?
quoted from Galen Johnson

On 4/18/07, Galen Johnson <user-87f955643e3d@xymon.invalid> wrote:
 Looking at that in the bb-hosts manpage...

 badTEST[-weekdays-starttime-endtime]:x:y:z
              Normally   when  a  network  test  fails,  the  status
changes  to  red  immediately.   With  a
              "badTEST:x:y:z" tag this behaviour changes:
              * While "z" or more successive tests fail, the column goes
RED.
              * While "y" or more successive tests fail, but fewer than
"z", the column goes YELLOW.
              * While "x" or more successive tests fail, but fewer than
"y", the column goes CLEAR.
              * While fewer than "x" successive tests fail, the column
stays GREEN.

This says "when it fails"...I'm looking for "when it stays in this
state"...where state is definable (maybe default is red)...

=G=

*From:* Larry Barber [mailto:user-6ef9c2864140@xymon.invalid]
*Sent:* Wednesday, April 18, 2007 4:18 PM
*To:* user-ae9b8668bcde@xymon.invalid
*Subject:* Re: [hobbit] Multiple yellow to red

For network tests, look for "badTEST" in the bb-hosts man page.

Thanks,
Larry Barber

On 4/18/07, Galen Johnson < user-87f955643e3d@xymon.invalid> wrote:
Hey,

I'll admit I haven't put a lot of legwork into this but...is it possible
to configure hobbit to go red on a test after a certain number of cycles at
yellow?  I have some tests that I don't mind if they are yellow for small
period but if they are there too long I need to know.

I could probably handle this with a script but it'd be nice if hobbit
could handle it out of the box...maybe extend COLOR or DURATION...

HOST=* COLOR=3*yellow
        blah blah blah
        MAIL user-ef86c43926b6@xymon.invalid

That would alert after it was yellow for 3 cycles...or would a DURATION
alert work...hurmmmmmm...

=G=

list Galen Johnson · Fri, 7 Sep 2007 11:24:07 -0400 ·
hey...I have a trademark on the sig...my people will be in touch :-).

 
=G= (tm)
quoted from Gary Baluha

 
From: Gary Baluha [mailto:user-ae3e15c22de1@xymon.invalid] 
Sent: Friday, September 07, 2007 11:12 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Multiple yellow to red

 
It would be nice if the manpage expanded on what "TEST" in "badTEST" can
be.  I've confirmed "badssh" and "badhttp" work, but I haven't yet
determined what else works with it.  Does "badconn" work, for instance?
Or is it really "badTCP-TEST"? 

On 4/18/07, Galen Johnson <user-87f955643e3d@xymon.invalid> wrote:

Looking at that in the bb-hosts manpage...

 
 badTEST[-weekdays-starttime-endtime]:x:y:z
              Normally   when  a  network  test  fails,  the  status
changes  to  red  immediately.   With  a
              "badTEST:x:y:z" tag this behaviour changes:
              * While "z" or more successive tests fail, the column goes
RED.
              * While "y" or more successive tests fail, but fewer than
"z", the column goes YELLOW.
              * While "x" or more successive tests fail, but fewer than
"y", the column goes CLEAR.
              * While fewer than "x" successive tests fail, the column
stays GREEN.

 
This says "when it fails"...I'm looking for "when it stays in this
state"...where state is definable (maybe default is red)...

 
=G=

 
From: Larry Barber [mailto:user-6ef9c2864140@xymon.invalid] 
Sent: Wednesday, April 18, 2007 4:18 PM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Multiple yellow to red

For network tests, look for "badTEST" in the bb-hosts man page.

Thanks,
Larry Barber

On 4/18/07, Galen Johnson < user-87f955643e3d@xymon.invalid
<mailto:user-87f955643e3d@xymon.invalid> > wrote: 

Hey,

I'll admit I haven't put a lot of legwork into this but...is it possible
to configure hobbit to go red on a test after a certain number of cycles
at yellow?  I have some tests that I don't mind if they are yellow for
small period but if they are there too long I need to know. 

I could probably handle this with a script but it'd be nice if hobbit
could handle it out of the box...maybe extend COLOR or DURATION...

HOST=* COLOR=3*yellow
        blah blah blah
        MAIL user-ef86c43926b6@xymon.invalid

That would alert after it was yellow for 3 cycles...or would a DURATION
alert work...hurmmmmmm...

=G=