#
# Faiyaz Ahmed <faiyaza@cs.princeton.edu>
#
-# $Id: $
+# $Id: comon.py,v 1.4 2006/11/14 19:20:13 faiyaza Exp $
#
# Get CoMon data, unsorted, in CSV, and create a huge hash.
#
"ssh": "sshstatus%20%3E%202h",
"clock_drift": "drift%20%3E%201m",
"dns": "dns1udp%20%3E%2080%20&&%20dns2udp%20%3E%2080",
- "disk": "resptime%20%3E%200%20&&%20gbfree%20%3C%205",
"filerw": "filerw%3E0",
"dbg" : "keyok==0"}
Thread.__init__(self)
self.allbuckets.put(host)
def run(self):
- while 1:
- self.updatedb()
- self.updatebkts()
- self.push()
- time.sleep(COSLEEP)
+ self.updatedb()
+ self.updatebkts()
+ self.push()
def __repr__(self):
return self
for host in cdb.keys():
if cdb[host]['keyok'] == "0":
print("%s \t Bootstate %s nodetype %s kernver %s keyok %s" %(host, cdb[host]['bootstate'], cdb[host]['nodetype'], cdb[host]['kernver'], cdb[host]['keyok']))
+ print a.codata['michelangelo.ani.univie.ac.at']
#time.sleep(3)
#a.push()
#print a.filerw