protect from shutdown pkg arriving without havin seen a startup package
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
# $Id: hbd,v 1.8 2006/01/21 17:52:27 andreas Exp $
|
# $Id: hbd,v 1.9 2006/04/28 12:15:13 andreas Exp $
|
||||||
# Wait for heartbeat messages and act on them (or their absence)
|
# Wait for heartbeat messages and act on them (or their absence)
|
||||||
#
|
#
|
||||||
import time, os, string, sys, socket, atexit, select, SocketServer, getopt
|
import time, os, string, sys, socket, atexit, select, SocketServer, getopt
|
||||||
@@ -305,7 +305,10 @@ def readsock():
|
|||||||
log("%s shutdown" % name)
|
log("%s shutdown" % name)
|
||||||
hosts[name].newstate(Host.down)
|
hosts[name].newstate(Host.down)
|
||||||
if interval > 0:
|
if interval > 0:
|
||||||
hosts[name].interval=interval
|
try:
|
||||||
|
hosts[name].interval=interval
|
||||||
|
except:
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user