repeated purple to blue transistions for disabled, offline servers
list Tom Georgoulias
I've got 2 servers offline at the moment and I'm using the disabled function to prevent them from alerting/paging. What is confusing to me is the way that my hobbit front page and the individual monitored parameters for the system keep transitioning between purple and blue. Shouldn't they all just stay blue until the disabled period ends? Tom
list Lars Ebeling
▸
Tom Georgoulias <user-5f0deb12906c@xymon.invalid> wrote: I've got 2 servers offline at the moment and I'm using the disabled function to prevent them from alerting/paging. What is confusing to me is the way that my hobbit front page and the individual monitored parameters for the system keep transitioning between purple and blue. Shouldn't they all just stay blue until the disabled period ends? Tom
Aha, I just experienced the same, I also have one disabled server and it was all purple a moment ago and now all blue. I have only seen it once, so I thought it was a temporary insanity.
/Lars
Hobbithobbyist
The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.
--Bertrand Russell
list Henrik Størner
▸
On Wed, Mar 30, 2005 at 09:10:40AM -0500, Tom Georgoulias wrote:
I've got 2 servers offline at the moment and I'm using the disabled function to prevent them from alerting/paging. What is confusing to me is the way that my hobbit front page and the individual monitored parameters for the system keep transitioning between purple and blue. Shouldn't they all just stay blue until the disabled period ends?
Did you disable them via the enable/disable webpage, or are they "disabled" via a DOWNTIME definition in the bb-hosts file ? The behaviour you see sounds wrong, no doubt about that. I just want to be sure where I should start looking. Henrik
list Lars Ebeling
Hi, I have disabled via a script that I created from maint.pl and at /Lars Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote: Datum: Wed, 30 Mar 2005 16:24:28 +0200 Från: Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> Till: user-ae9b8668bcde@xymon.invalid Ämne: Re: [hobbit] repeated purple to blue transistions for disabled, offline servers
Från: Henrik Stoerner[SMTP:user-ce4a2c883f75@xymon.invalid] Skickat: den 30 mars 2005 16:24:28 Till: user-ae9b8668bcde@xymon.invalid Ämne: Re: [hobbit] repeated purple to blue transistions for disabled, offline servers Automatiskt vidarebefordrat av en regel
▸
On Wed, Mar 30, 2005 at 09:10:40AM -0500, Tom Georgoulias wrote:
I've got 2 servers offline at the moment and I'm using the disabled function to prevent them from alerting/paging. What is confusing to me is the way that my hobbit front page and the individual monitored parameters for the system keep transitioning between purple and blue. Shouldn't they all just stay blue until the disabled period ends?
Did you disable them via the enable/disable webpage, or are they "disabled" via a DOWNTIME definition in the bb-hosts file ? The behaviour you see sounds wrong, no doubt about that. I just want to be sure where I should start looking. Henrik Hobbithobbyist The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt. --Bertrand Russell
list Tom Georgoulias
▸
Henrik Stoerner wrote:
On Wed, Mar 30, 2005 at 09:10:40AM -0500, Tom Georgoulias wrote:I've got 2 servers offline at the moment and I'm using the disabled function to prevent them from alerting/paging. What is confusing to me is the way that my hobbit front page and the individual monitored parameters for the system keep transitioning between purple and blue.Did you disable them via the enable/disable webpage, or are they "disabled" via a DOWNTIME definition in the bb-hosts file ?
I used the enable/disable webpage. Tom
list Henrik Størner
▸
On Wed, Mar 30, 2005 at 09:37:33AM -0500, Tom Georgoulias wrote:
Henrik Stoerner wrote:On Wed, Mar 30, 2005 at 09:10:40AM -0500, Tom Georgoulias wrote:I've got 2 servers offline at the moment and I'm using the disabled >>function to prevent them from alerting/paging. What is confusing to me >>is the way that my hobbit front page and the individual monitored >>parameters for the system keep transitioning between purple and blue. >Did you disable them via the enable/disable webpage, or are they "disabled" via a DOWNTIME definition in the bb-hosts file ?I used the enable/disable webpage.
I think I'm on to this. Could you check if these blue-purple-blue transisions also show up on the history web page ? My suspicion is that they do not appear there. Regards, Henrik
list Lars Ebeling
Not here Lars Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote: Datum: Wed, 30 Mar 2005 16:43:21 +0200
▸
Från: Henrik Stoerner <user-ce4a2c883f75@xymon.invalid>
Till: user-ae9b8668bcde@xymon.invalid
Ämne: Re: [hobbit] repeated purple to blue transistions for disabled, offline servers
▸
Från: Henrik Stoerner[SMTP:user-ce4a2c883f75@xymon.invalid] Skickat: den 30 mars 2005 16:43:21 Till: user-ae9b8668bcde@xymon.invalid Ämne: Re: [hobbit] repeated purple to blue transistions for disabled, offline servers Automatiskt vidarebefordrat av en regel
On Wed, Mar 30, 2005 at 09:37:33AM -0500, Tom Georgoulias wrote:
Henrik Stoerner wrote:On Wed, Mar 30, 2005 at 09:10:40AM -0500, Tom Georgoulias wrote:I've got 2 servers offline at the moment and I'm using the disabled function to prevent them from alerting/paging. What is confusing to me is the way that my hobbit front page and the individual monitored parameters for the system keep transitioning between purple and blue.Did you disable them via the enable/disable webpage, or are they "disabled" via a DOWNTIME definition in the bb-hosts file ?I used the enable/disable webpage.
I think I'm on to this. Could you check if these blue-purple-blue transisions also show up on the history web page ? My suspicion is that they do not appear there. Regards, Henrik Hobbithobbyist The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt. --Bertrand Russell
list Tom Georgoulias
▸
Henrik Stoerner wrote:
I think I'm on to this. Could you check if these blue-purple-blue transisions also show up on the history web page ? My suspicion is that they do not appear there.
You are correct, they do not.
list Henrik Størner
▸
On Wed, Mar 30, 2005 at 09:52:02AM -0500, Tom Georgoulias wrote:
Henrik Stoerner wrote:I think I'm on to this. Could you check if these blue-purple-blue transisions also show up on the history web page ? My suspicion is that they do not appear there.You are correct, they do not.
I think this patch should solve it. Henrik -------------- next part -------------- --- hobbitd/hobbitd.c 2005/03/28 06:27:58 1.134 +++ hobbitd/hobbitd.c 2005/03/30 15:03:43 @@ -831,9 +831,12 @@ * If the status is acknowledged, make it valid for the longest period * of the acknowledgment and the normal validity (so an acknowledged status * does not go purple because it is not being updated due to the host being down). + * + * Same tweak must be done for disabled tests. */ log->validtime = now + validity*60; - if (log->acktime && (log->acktime > log->validtime)) log->validtime = log->acktime; + if (log->acktime && (log->acktime > log->validtime)) log->validtime = log->acktime; + if (log->enabletime && (log->enabletime > log->validtime)) log->validtime = log->enabletime; strncpy(log->sender, sender, sizeof(log->sender)-1); *(log->sender + sizeof(log->sender) - 1) = '\0';
list Tom Georgoulias
▸
Henrik Stoerner wrote:
On Wed, Mar 30, 2005 at 09:52:02AM -0500, Tom Georgoulias wrote:Henrik Stoerner wrote:I think I'm on to this. Could you check if these blue-purple-blue transisions also show up on the history web page ? My suspicion is that they do not appear there.I think this patch should solve it.
Looks good so far. The main & sub pages are now green, and the alerts for each parameter are blue. I'll keep an eye on it to make sure it doesn't happen again. Tom
list Lars Ebeling
Henrik, could you please put the patch at your website in beta directory? /Lars Henrik Stoerner <user-ce4a2c883f75@xymon.invalid> wrote: Datum: Wed, 30 Mar 2005 17:05:30 +0200
▸
Från: Henrik Stoerner <user-ce4a2c883f75@xymon.invalid>
Till: user-ae9b8668bcde@xymon.invalid
Ämne: Re: [hobbit] repeated purple to blue transistions for disabled, offline servers
▸
Från: Henrik Stoerner[SMTP:user-ce4a2c883f75@xymon.invalid] Skickat: den 30 mars 2005 17:05:30 Till: user-ae9b8668bcde@xymon.invalid Ämne: Re: [hobbit] repeated purple to blue transistions for disabled, offline servers Automatiskt vidarebefordrat av en regel
On Wed, Mar 30, 2005 at 09:52:02AM -0500, Tom Georgoulias wrote:
Henrik Stoerner wrote:I think I'm on to this. Could you check if these blue-purple-blue transisions also show up on the history web page ? My suspicion is that they do not appear there.You are correct, they do not.
I think this patch should solve it. Henrik --- hobbitd/hobbitd.c 2005/03/28 06:27:58 1.134 +++ hobbitd/hobbitd.c 2005/03/30 15:03:43 @@ -831,9 +831,12 @@ * If the status is acknowledged, make it valid for the longest period * of the acknowledgment and the normal validity (so an acknowledged status * does not go purple because it is not being updated due to the host being down). + * + * Same tweak must be done for disabled tests. */ log->validtime = now + validity*60; - if (log->acktime && (log->acktime > log->validtime)) log->validtime = log->acktime; + if (log->acktime && (log->acktime > log->validtime)) log->validtime = log->acktime; + if (log->enabletime && (log->enabletime > log->validtime)) log->validtime = log->enabletime; strncpy(log->sender, sender, sizeof(log->sender)-1); *(log->sender + sizeof(log->sender) - 1) = '\0'; Hobbithobbyist The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt. --Bertrand Russell
list Henrik Størner
On Wed, Mar 30, 2005 at 06:32:42PM +0200, lars ebeling wrote:
Henrik, could you please put the patch at your website in beta directory?
Done. Henrik