[rrd-developers] Python Bindings in rc4, return dict of info cmd

Hermann Lauer Hermann.Lauer at iwr.uni-heidelberg.de
Mon Aug 24 10:54:48 CEST 2009


Hello,

rc4 did compile and install fine on debian lenny,
but I noticed that the return of the info cmd is now a
flat dict instead of a structured one (see below).
So simple getting of the datasources is not possible anymore. 

Any ideas about that ?

Thanks,
 greetings
  Hermann

>>> import rrdtool
>>> i=rrdtool.info("warmwasser.rrd")
>>> i['ds']
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
KeyError: 'ds'
>>> i.keys()
[...
'ds[ds0].minimal_heartbeat', 'rra[9].cdp_prep[2].value', 'rra[9].cur_row', 
'rra[0].xff', 'rra[9].cdp_prep[0].unknown_datapoints', 'rra[4].pdp_per_row', 
'rra[6].cf', 'ds[ds1].last_ds', 'rra[10].cf', 
'rra[5].cdp_prep[2].unknown_datapoints', 'rra[10].rows', 
'rra[0].cdp_prep[2].unknown_datapoints']


-- 
Netzwerkadministration/Zentrale Dienste, Interdiziplinaeres 
Zentrum fuer wissenschaftliches Rechnen der Universitaet Heidelberg
IWR; INF 368; 69120 Heidelberg; Tel: (06221)54-8236 Fax: -5224
Email: Hermann.Lauer at iwr.uni-heidelberg.de



More information about the rrd-developers mailing list