[hobbit] repeated purple to blue transistions for disabled, offline servers

Henrik Stoerner henrik at hswn.dk
Wed Mar 30 17:05:30 CEST 2005


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';


More information about the Xymon mailing list