diff --git a/hbd b/hbd index 15b6952..389aae2 100755 --- a/hbd +++ b/hbd @@ -419,10 +419,10 @@ def checkoverdue(): pmsg = [] for c in hbdclass.Host.hosts[h].connections: conn = hbdclass.Host.hosts[h].connections[c] - if conn.state == hbdclass.Connection.down: + if conn.state == hbdclass.Connection.DOWN: continue timeout = hbdclass.Host.hosts[h].interval + grace - if conn.state == hbdclass.Connection.up and (now - conn.lastbeat) > timeout: + if conn.state == hbdclass.Connection.UP and (now - conn.lastbeat) > timeout: conn.newstate(hbdclass.Connection.OVERDUE, now, grace) pmsg.append(conn.afam) if (