[hobbit] disabled monitors showing purple occasionally on web ui

Henrik Stoerner henrik at hswn.dk
Tue Mar 1 07:41:54 CET 2005


On Mon, Feb 28, 2005 at 06:40:27PM -0800, Bruce Lysik wrote:
> 
> > Cool.  Were you able to fix this in RC4?  Because I just 
> > installed RC4, and it looks like it's still there.  Or at 
> > least a similar problem is.  At the moment I have three 
> > disabled purple monitors showing.
> 
> Actually, the problem has changed.  Now it appears that ALL the
> disabled monitors are showing up as purple.  Ack.

If these were disabled before you installed RC4, then there's a bad
timestamp stored that still makes them go purple. Either re-disable
them, or apply this patch which fixes up the timestamps and restart
Hobbit.


Henrik
-------------- next part --------------
--- hobbitd/hobbitd.c	2005/02/27 12:00:50	1.117
+++ hobbitd/hobbitd.c	2005/03/01 06:40:24
@@ -2076,6 +2076,10 @@
 			ltail = ltail->next;
 		}
 
+		/* Fixup validtime in case of ack'ed or disabled tests */
+		if (validtime < acktime) validtime = acktime;
+		if (validtime < enabletime) validtime = enabletime;
+
 		ltail->test = t;
 		ltail->host = htail;
 		ltail->origin = origin;


More information about the Xymon mailing list