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

lars ebeling dhd733 at yahoo.se
Wed Mar 30 18:32:42 CEST 2005


Henrik,
 
could you please put the patch at your website in beta directory?
 
/Lars

Henrik Stoerner <henrik at hswn.dk> wrote:
Datum: Wed, 30 Mar 2005 17:05:30 +0200
Från: Henrik Stoerner <henrik at hswn.dk>
Till: hobbit at hswn.dk
Ämne: Re: [hobbit] repeated purple to blue transistions for disabled, offline servers



> ----------
> Från: Henrik Stoerner[SMTP:HENRIK at HSWN.DK]
> Skickat: den 30 mars 2005 17:05:30
> Till: hobbit at hswn.dk
> Ä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';

To unsubscribe from the hobbit list, send an e-mail to
hobbit-unsubscribe at hswn.dk


Hobbithobbyist

The trouble with the world is that the stupid are cocksure and the intelligent are full of doubt.
--Bertrand Russell 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20050330/8a9a3f4d/attachment.html>


More information about the Xymon mailing list