Xymon Mailing List Archive search

Status Changes Question

3 messages in this thread

list Pnixon · Thu, 1 Dec 2005 11:10:25 -0500 ·
Hey all,
 I'm looking to add hobbit to a script I have.

 I've coded in sending the messages at the appropriate places with the right
colors based on the situation.

 However, if the status goes red, and then during the next cycle of the
script, it goes green, HobbitServer changes the status to green, even though
the red was sent with status+30

 Ideally the behavior I'm looking for is....

 Time		Status	
 0		Green		
 15		Red		
 30		Green	(Hobbit ignores this because it was red for only 15
minutes, not 30 minutes)
 45		Green (Hobbit changes the test status to Green now, because
it's been 30 minutes).


If it doesn't make sense, please send follow up questions so I can flesh it
out some more.

Thanks,
--Pat
list Henrik Størner · Thu, 1 Dec 2005 17:25:18 +0100 ·
quoted from Pnixon
On Thu, Dec 01, 2005 at 11:10:25AM -0500, user-c102b8958c7a@xymon.invalid wrote:
 However, if the status goes red, and then during the next cycle of the
script, it goes green, HobbitServer changes the status to green, even though
the red was sent with status+30

 Ideally the behavior I'm looking for is....

 Time		Status	
 0		Green		
 15		Red		
 30		Green	(Hobbit ignores this because it was red for only 15
minutes, not 30 minutes)
 45		Green (Hobbit changes the test status to Green now, because
it's been 30 minutes).


If it doesn't make sense, please send follow up questions so I can flesh it
out some more.
It's just not the way Hobbit (or BB, for that matter) works. The latest
status received is always the current one - sending a status with "+30"
only indicates that an update must be received within 30 minutes. It
doesn't mean that this status is valid for 30 minutes no matter what
else is received.

From my point of view, sending a "green" for a status that is down
is broken. Either send another "red", or don't send anything at all.


Regards,
Henrik
list Pnixon · Thu, 1 Dec 2005 13:17:59 -0500 ·
Okay,
 I thought my logic was broken there.

 Thanks for the reply.

--Pat
quoted from Henrik Størner

-----Original Message-----
From: user-ce4a2c883f75@xymon.invalid [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Thursday, December 01, 2005 11:25 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Status Changes Question


On Thu, Dec 01, 2005 at 11:10:25AM -0500, user-c102b8958c7a@xymon.invalid wrote:
 However, if the status goes red, and then during the next cycle of the
script, it goes green, HobbitServer changes the status to green, even
though
the red was sent with status+30

 Ideally the behavior I'm looking for is....

 Time		Status	
 0		Green		
 15		Red		
 30		Green	(Hobbit ignores this because it was red for only 15
minutes, not 30 minutes)
 45		Green (Hobbit changes the test status to Green now, because
it's been 30 minutes).


If it doesn't make sense, please send follow up questions so I can flesh
it
out some more.
It's just not the way Hobbit (or BB, for that matter) works. The latest
status received is always the current one - sending a status with "+30"
only indicates that an update must be received within 30 minutes. It
doesn't mean that this status is valid for 30 minutes no matter what
else is received.

From my point of view, sending a "green" for a status that is down
is broken. Either send another "red", or don't send anything at all.


Regards,
Henrik