diff --git a/munin/batiments b/munin/batiments index aa59969b..2ea0b622 100644 --- a/munin/batiments +++ b/munin/batiments @@ -31,6 +31,8 @@ if arg == "config" : print 'batj.draw STACK' print 'batm.label Bâtiment M' print 'batm.draw STACK' + print 'bato.label Bâtiment O' + print 'batm.draw STACK' print 'batp.label PdJ' print 'batp.draw STACK' print 'wifi.label Wifi' @@ -48,7 +50,7 @@ elif arg == "fichier" : return len(data['adherent']) + len(data['club']) total = 0 - for bat in 'abcghijmp' : + for bat in 'abcghijmpo' : nb = count('paiement=ok&chbre=%s*' % bat) total += nb file.write("bat%s.value %d\n" % (bat, nb)) diff --git a/munin/stats-batiment_ b/munin/stats-batiment_ index f8c73054..fd4361b3 100644 --- a/munin/stats-batiment_ +++ b/munin/stats-batiment_ @@ -17,7 +17,7 @@ stats_batiments = "/var/lib/munin/tmp/batiments" BAT = sys.argv[0].split('_')[1] # Pour les batiments non manageables on indique le nb de prises -BAT_CHBRES = {'g' : 312} +BAT_CHBRES = {} def switch_prise(bat, prise) : ''' Renvoie le switch et la prise associé au numéro de la prise ''' @@ -94,7 +94,7 @@ else : PRISES_ACTIVES += len(reverse(BAT)[prise]) print "activ.value %d" % PRISES_ACTIVES - + PRISES_FIXES = 0 if multiprise != [] : PRISES_FIXES = - len(multiprise) @@ -103,9 +103,9 @@ else : print "fixes.value %d" % PRISES_FIXES PRISES_CRANS = len(uplink_prises[BAT].keys()) - + print "crans.value %d" % PRISES_CRANS - + NB_PRISES = 0 for switch in all_switchs(BAT) : try: