cpitalize constants
This commit is contained in:
@@ -423,12 +423,12 @@ def checkoverdue():
|
||||
continue
|
||||
timeout = hbdclass.Host.hosts[h].interval + grace
|
||||
if conn.state == hbdclass.Connection.up and (now - conn.lastbeat) > timeout:
|
||||
conn.newstate(hbdclass.Connection.overdue, now, grace)
|
||||
conn.newstate(hbdclass.Connection.OVERDUE, now, grace)
|
||||
pmsg.append(conn.afam)
|
||||
if (
|
||||
conn.state == hbdclass.Connection.overdue and (now - conn.lastbeat) > DROPOVERDUE
|
||||
conn.state == hbdclass.Connection.OVERDUE and (now - conn.lastbeat) > DROPOVERDUE
|
||||
):
|
||||
conn.newstate(hbdclass.Connection.unknown, conn.lastbeat)
|
||||
conn.newstate(hbdclass.Connection.UNKNOWN, conn.lastbeat)
|
||||
if pmsg != []:
|
||||
if h in watchhosts:
|
||||
email("overdue", "%s overdue" % " and ".join(pmsg))
|
||||
|
||||
Reference in New Issue
Block a user