X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=mailmonitor.py;h=c9c1750f77175bbea8d73f5f1d0693b02324cead;hb=ee740a3ff286a9720cd1656cd60a3c85f0f14b29;hp=87b301f77ca6c031638cd5d96f57aafdb8e24660;hpb=fcbf7923a944e57c789a608b31fbb9b75ff712b1;p=monitor.git diff --git a/mailmonitor.py b/mailmonitor.py index 87b301f..c9c1750 100644 --- a/mailmonitor.py +++ b/mailmonitor.py @@ -17,7 +17,7 @@ api = plc.getAuthAPI() from clean_policy import * def reboot(hostname): - print "calling reboot!!! %s " % hostname + print "CALLING: mailmonitor.reboot(%s)" % hostname l_nodes = api.GetNodes(hostname) if len(l_nodes) == 0: @@ -30,11 +30,11 @@ def reboot(hostname): if len(l_nodes) == 0: raise Exception("Host removed via blacklist: %s" % hostname) - ad_dbTickets = database.if_cached_else_refresh(True, False, "ad_dbTickets", lambda : []) - if ad_dbTickets == None: - raise Exception("Could not find cached dbTickets") + #ad_dbTickets = database.if_cached_else_refresh(True, False, "ad_dbTickets", lambda : []) + #if ad_dbTickets == None: + # raise Exception("Could not find cached dbTickets") - print "starting new thing" + #print "starting new thing" mon = MonitorMergeDiagnoseSendEscellate(hostname, True) mon.run()