Xymon Mailing List Archive search

repeated purple to blue transistions for disabled, offline servers

list Lars Ebeling
Wed, 30 Mar 2005 18:32:42 +0200 (CEST)
Message-Id: <user-2c06337af469@xymon.invalid>

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