From 73be9cf1fb16c10726209a69ce56679ea036fde5 Mon Sep 17 00:00:00 2001 From: andreas Date: Fri, 6 May 2005 14:39:27 +0000 Subject: [PATCH] don't report return from overdue, only from OVERDUE :-) --- watcharnsberg | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/watcharnsberg b/watcharnsberg index 9f2f0c3..c787226 100755 --- a/watcharnsberg +++ b/watcharnsberg @@ -1,5 +1,5 @@ #!/usr/bin/env python -# $Id: watcharnsberg,v 1.4 2005/05/06 14:34:00 andreas Exp $ +# $Id: watcharnsberg,v 1.5 2005/05/06 14:39:27 andreas Exp $ # Wait for heartbeat messages and act on them (or their absence) # import time, os, string, sys, socket, curses, atexit, select, SocketServer @@ -246,7 +246,8 @@ def fromaddr(name, addr, boot): if host.getstate() != Host.up: lasts=host.state d=host.newstate(Host.up) - log("%s, back after being %s for %s" % (host.name, lasts, dur(d))) + if lasts != 'overdue': + log("%s, back after being %s for %s" % (host.name, lasts, dur(d))) host.upcount+=1 #