diff --git a/hbd b/hbd index eec81cd..35f5f0e 100755 --- a/hbd +++ b/hbd @@ -1,5 +1,5 @@ #!/usr/bin/env python -# $Id: hbd,v 1.24 2010/08/21 14:19:32 andreas Exp $ +# $Id: hbd,v 1.25 2010/08/21 14:37:53 andreas Exp $ # Wait for heartbeat messages and act on them (or their absence) # import time, os, string, sys, socket, atexit, select, SocketServer, getopt, signal, cPickle @@ -26,7 +26,7 @@ INTERVAL=10 GRACE=2 visual=0 - +os.environ['TZ']='Canada/Eastern' stdscr=None win=None @@ -415,7 +415,7 @@ class HtmlHandler(SocketServer.BaseRequestHandler): res.append("\n" % 60) res.append("") res.append('') - res.append("

Heartbeat status at %s (%s)

" % time.strftime("%H:%M:%S", time.localtime(now)), os.environ.get('TZ','Europe/Berlin')) + res.append("

Heartbeat status at %s (%s)

" % (time.strftime("%H:%M:%S", time.localtime(now)), os.environ.get('TZ','Europe/Berlin'))) res.append("") res.append("\n" ) hosts_sorted=hosts.keys() @@ -657,5 +657,5 @@ if sig == signal.SIGHUP: pick.dump(msgs) pickf.close() - os.execv(sys.argv[0],sys.argv[0]+cmdargs) + os.execv(sys.argv[0],[sys.argv[0]]+cmdargs)
HostStateIP AddrResLast change