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