From f921cb1834f0dc508be3c31edee56f73fab48bdc Mon Sep 17 00:00:00 2001 From: andreas Date: Fri, 28 Apr 2006 12:23:59 +0000 Subject: [PATCH] redo last set refrsh meta tag --- hbd | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/hbd b/hbd index ca09f3d..8e5910d 100755 --- a/hbd +++ b/hbd @@ -1,5 +1,5 @@ #!/usr/bin/env python -# $Id: hbd,v 1.9 2006/04/28 12:15:13 andreas Exp $ +# $Id: hbd,v 1.10 2006/04/28 12:23:59 andreas Exp $ # Wait for heartbeat messages and act on them (or their absence) # import time, os, string, sys, socket, atexit, select, SocketServer, getopt @@ -303,7 +303,10 @@ def readsock(): fromaddr(name, addr[0], boot, interval) if shutdown: log("%s shutdown" % name) - hosts[name].newstate(Host.down) + try: + hosts[name].newstate(Host.down) + except: + pass if interval > 0: try: hosts[name].interval=interval @@ -367,6 +370,7 @@ class HtmlHandler(SocketServer.BaseRequestHandler): if code != 200: res.append('') res.append('') + res.append('') res.append('%s %s' % (code, cause)) res.append('') res.append('

%s

' % (cause))