X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=printbadcsv.py;h=2f5036da874759b3920c6b00c1da4bd33ac7ac05;hb=08bc8fdd4fc58fd7db356b0e5ba981d975231b78;hp=5d6989d303ac6f951c1ee36194985a735f174bcb;hpb=c3f2afdc81c6711c3825c82e2cd4970671575438;p=monitor.git diff --git a/printbadcsv.py b/printbadcsv.py index 5d6989d..2f5036d 100755 --- a/printbadcsv.py +++ b/printbadcsv.py @@ -1,14 +1,12 @@ #!/usr/bin/python -import database -import config +from monitor import database +from monitor import config import parser as parsermodule from www.printbadnodes import * def main(): - global fb db = database.dbLoad(config.dbname) - fb = database.dbLoad("findbadpcus") act= database.dbLoad("act_all") ## Field widths used for printing @@ -117,13 +115,13 @@ def main(): print str keys = categories.keys() - for cat in ['BOOT-ALPHA', 'BOOT-PROD', 'BOOT-OLDBOOTCD', 'DEBUG-ALPHA', - 'DEBUG-PROD', 'DEBUG-OLDBOOTCD', 'DOWN-ERROR']: + for cat in ['BOOT-PROD', 'BOOT-OLDPROD', 'BOOT-OLDBOOTCD', 'DEBUG-PROD', + 'DEBUG-OLDPROD', 'DEBUG-OLDBOOTCD', 'DOWN-ERROR']: if cat not in keys: categories[cat] = 0 keys = categories.keys() - for cat in ['BOOT-ALPHA', 'BOOT-PROD', 'BOOT-OLDBOOTCD', 'DEBUG-ALPHA', - 'DEBUG-PROD', 'DEBUG-OLDBOOTCD', 'DOWN-ERROR']: + for cat in ['BOOT-PROD', 'BOOT-OLDPROD', 'BOOT-OLDBOOTCD', 'DEBUG-PROD', + 'DEBUG-OLDPROD', 'DEBUG-OLDBOOTCD', 'DOWN-ERROR']: if cat in keys: print "%d," % categories[cat], print ""