tell websockets about verdue host
This commit is contained in:
@@ -363,6 +363,7 @@ def checkoverdue():
|
|||||||
email("overdue", "%s overdue" % " and ".join(pmsg))
|
email("overdue", "%s overdue" % " and ".join(pmsg))
|
||||||
pushmsg("%s %s overdue" % (h, " and ".join(pmsg)))
|
pushmsg("%s %s overdue" % (h, " and ".join(pmsg)))
|
||||||
log(h, "%s overdue" % " and ".join(pmsg))
|
log(h, "%s overdue" % " and ".join(pmsg))
|
||||||
|
msg_to_websockets('host', hbdclass.Host.hosts[h].stateinfo())
|
||||||
|
|
||||||
|
|
||||||
def log(host, m, service=None):
|
def log(host, m, service=None):
|
||||||
@@ -678,6 +679,7 @@ class HttpHandler(http.server.BaseHTTPRequestHandler):
|
|||||||
else:
|
else:
|
||||||
log(uname, "dropped")
|
log(uname, "dropped")
|
||||||
# for addr in hbdclass.Host.hosts[uname].0i
|
# for addr in hbdclass.Host.hosts[uname].0i
|
||||||
|
# TODO: send message to websocket about dropped host
|
||||||
del hbdclass.Host.hosts[uname]
|
del hbdclass.Host.hosts[uname]
|
||||||
res=self.buildhead()
|
res=self.buildhead()
|
||||||
res.append("Done")
|
res.append("Done")
|
||||||
|
|||||||
Reference in New Issue
Block a user