Adding subdirectories for remote commands to control ILO and DRAC cards over
[monitor.git] / diagnose.py
index 1002118..855f52d 100755 (executable)
@@ -66,7 +66,7 @@ POLSLEEP=10
 # list will be monitored.
 runningthreads = {}
 # Seconds between checking threads
-WATCHSLEEP = 10
+WATCHSLEEP = 5
  
 # Set up Logging
 logger = logging.getLogger("monitor")
@@ -187,6 +187,9 @@ def main():
        #######  RT tickets    #########################################
        t = soltesz.MyTimer()
        ad_dbTickets = soltesz.if_cached_else_refresh(config.cachert, config.refresh, "ad_dbTickets", rt.rt_tickets)
+       if ad_dbTickets == "":
+               print "ad_dbTickets failed..."
+               sys.exit(1)
        print "Getting tickets from RT took: %f sec" % t.diff() ; del t
 
        logger.info('Start Merge/RT/Diagnose threads')