[wifi/bornes.py] cosmétique pour munin
darcs-hash:20100211123656-bd074-4520fb1b9ff2c436770bf1da9b9a4b54cfd6729d.gz
This commit is contained in:
parent
58d7b76ea3
commit
fcdf94565f
1 changed files with 2 additions and 2 deletions
|
@ -220,7 +220,7 @@ toutes les bornes"""
|
||||||
plugin = prog.split('_', 1)[0]
|
plugin = prog.split('_', 1)[0]
|
||||||
if plugin == 'uptime':
|
if plugin == 'uptime':
|
||||||
config = """graph_title Uptime Bornes
|
config = """graph_title Uptime Bornes
|
||||||
graph_args --base 1000 -l 0
|
graph_args --base 1000 --logarithmic
|
||||||
graph_vlabel uptime in days"""
|
graph_vlabel uptime in days"""
|
||||||
def process(uptime):
|
def process(uptime):
|
||||||
if uptime: return str(float (uptime.split()[1]) / (24 * 3600))
|
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',
|
'5': 'cinq', '6': 'six', '7': 'sept', '8': 'huit',
|
||||||
'9': 'neuf', '10': 'dix', '11': 'onze', '12': 'douze',
|
'9': 'neuf', '10': 'dix', '11': 'onze', '12': 'douze',
|
||||||
'13': 'treize', '14': 'quatorze', '0': 'echec' }
|
'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: raise NotImplementedError
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue