[wifi/bornes.py] cosmétique pour munin

darcs-hash:20100211123656-bd074-4520fb1b9ff2c436770bf1da9b9a4b54cfd6729d.gz
This commit is contained in:
Antoine Durand-Gasselin 2010-02-11 13:36:56 +01:00
parent 58d7b76ea3
commit fcdf94565f

View file

@ -220,7 +220,7 @@ toutes les bornes"""
plugin = prog.split('_', 1)[0]
if plugin == 'uptime':
config = """graph_title Uptime Bornes
graph_args --base 1000 -l 0
graph_args --base 1000 --logarithmic
graph_vlabel uptime in days"""
def process(uptime):
if uptime: return str(float (uptime.split()[1]) / (24 * 3600))
@ -238,7 +238,7 @@ graph_args --base 1000 -l 0"""
'5': 'cinq', '6': 'six', '7': 'sept', '8': 'huit',
'9': 'neuf', '10': 'dix', '11': 'onze', '12': 'douze',
'13': 'treize', '14': 'quatorze', '0': 'echec' }
munin(config, results=bornes_canal(), buckets= buckets)
munin(config, results=bornes_canal(), buckets= buckets, stack="AREA")
else: raise NotImplementedError
else: