[rrd-users] Is it possible to set the order of output of ds's from fetching an rrd db?

vruiz vruiz at adif.es
Thu Jul 19 18:56:11 CEST 2007


After creating an rrd file with Cacti to collect traffic_in and traffic_out,
the order of the datasets output by fetching the contents of some rrd files
is traffic_out then traffic_in. Most of this rrd files were created with the
desired order of ds's (traffic_in-traffic_out), however a few of them shows
the order of ds's like this info:

rra # rrdtool info "./my_file.rrd"
filename = "./my_file.rrd"
rrd_version = "0003"
step = 300
last_update = 1184861408
ds[traffic_out].type = "COUNTER"
ds[traffic_out].minimal_heartbeat = 600
ds[traffic_out].min = 0.0000000000e+00
ds[traffic_out].max = 1.0000000000e+08
ds[traffic_out].last_ds = "2275415411697"
ds[traffic_out].value = 3.1025805867e+06
ds[traffic_out].unknown_sec = 0
ds[traffic_in].type = "COUNTER"
ds[traffic_in].minimal_heartbeat = 600
ds[traffic_in].min = 0.0000000000e+00
ds[traffic_in].max = 1.0000000000e+08
ds[traffic_in].last_ds = "2485198596592"
ds[traffic_in].value = 4.5789402133e+06
ds[traffic_in].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 115500
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0

If I do fetch:
rra # rrdtool fetch ./my_file.rrd AVERAGE --start now-600 --end now
                    traffic_out          traffic_in

1184863200: 7.5630386667e+02 5.4081824667e+03
1184863500: 9.4962229767e+02 1.4019828713e+03

I need to alter this order:  first traffic_in and then traffic_out. Is there
any way to do it with rrdtune or rrdfetch? If not, how can I dump the values
to a new rrd file with the desired order of ds's?

Thanks for any help


-- 
View this message in context: http://www.nabble.com/Is-it-possible-to-set-the-order-of-output-of-ds%27s-from-fetching-an-rrd-db--tf4112423.html#a11693475
Sent from the RRDTool - User mailing list archive at Nabble.com.



More information about the rrd-users mailing list