- if os.path.isfile("precomon.txt"):
- nodelist = config.getListFromFile("precomon.txt")
- print "PreComon node info"
- preComon(nodelist, toCheck)
- for nodename in nodelist:
- # TODO: temporary hack.
- if nodename not in d_allplc_nodes:
- d_allplc_nodes[nodename] = {}
-
- # TODO: Refreshes Comon data every COSLEEP seconds
- cm1 = comon.Comon(cdb, d_allplc_nodes, toCheck)
- startThread(cm1,"comon")
+ # TODO: get input nodes from findbad database, pipe into toCheck
+ cm1 = read_findbad_db(d_allplc_nodes, toCheck)