[rrd-developers] [PATCH] python binding tuple as arg in every method

Tomasz Pajor nikon at puffy.pl
Thu Aug 20 03:29:43 CEST 2009


Hello,

You can create a tuple from for example list, list is propagated 
dynamically with data from db.

rrd_create_config = ('/tmp/maria/rrd/1/1.rrd', '--start', '1250731051', 
'--step', '10', 'DS:PHYS_LOAD_1:GAUGE:120:0.0:U', 
'DS:PHYS_LOAD_5:GAUGE:120:0.0:U', 'DS:PHYS_LOAD_15:GAUGE:120:0.0:U', 
'RRA:MIN:0.500000:6:700', 'RRA:MIN:0.500000:24:775', 
'RRA:MIN:0.500000:288:2000', 'RRA:MAX:0.500000:6:700', 
'RRA:MAX:0.500000:24:775', 'RRA:MAX:0.500000:288:2000', 
'RRA:AVERAGE:0.500000:1:600', 'RRA:AVERAGE:0.500000:6:700', 
'RRA:AVERAGE:0.500000:24:775', 'RRA:AVERAGE:0.500000:288:2000')

rrdtool.create(rrd_create_config)

Patch is available at: 
http://puffy.pl/patches/rrdtool_python_binding_create_args_from_tuple.patch

Tobi can this be applied to 1.4.0?

--
Best regards
Tomasz Pajor
puffy.pl - what you can't do we can do it for you



More information about the rrd-developers mailing list