X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=comon.py;fp=comon.py;h=b9ff8b0bc5d8a1fbaa3004e0347d20963fb52b3e;hb=56565f0af4cf94c47b3cbae369ecfcb8eb535ea6;hp=f547230a5c9a7b2a807dd08bebecaaf6cf051557;hpb=b97ae656a9616f0e4b33116338d2ee949f565ebd;p=monitor.git diff --git a/comon.py b/comon.py index f547230..b9ff8b0 100755 --- a/comon.py +++ b/comon.py @@ -3,7 +3,7 @@ # # Faiyaz Ahmed # -# $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. # @@ -98,11 +98,9 @@ class Comon(Thread): 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 @@ -130,6 +128,7 @@ def main(): 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