Hi,
I'm very new to rrd and trying to fetch 60 sec and 300 sec data from rrd file which is created with 60 sec & 300secs options. But getting same 60 secs o/p while I ran in cmd-line .
Below two fetch command returning same 60 secs ouptut.
#rrdtool fetch testing.rrd AVERAGE -r 60 -s 1289261655 -e 1289261975
1289261640: nan
1289261700: nan
1289261760: 0.0000000000e+00
1289261820: 0.0000000000e+00
1289261880: 0.0000000000e+00
1289261940: 0.0000000000e+00
1289262000: nan
#rrdtool fetch testing.rrd AVERAGE -r 300 -s 1289261655 -e 1289261975
1289261640: nan
1289261700: nan
1289261760: 0.0000000000e+00
1289261820: 0.0000000000e+00
1289261880: 0.0000000000e+00
1289261940: 0.0000000000e+00
1289262000: nan
Here rrd info:
#rrdtool info testing.rrd
filename = "testing.rrd"
rrd_version = "0001"
step = 5
last_update = 1289261960
ds[count].type = "ABSOLUTE"
ds[count].minimal_heartbeat = 5
ds[count].min = 0.0000000000e+00
ds[count].max = NaN
ds[count].last_ds = "UNKN"
ds[count].value = 0.0000000000e+00
ds[count].unknown_sec = 0
rra[0].cf = "LAST"
rra[0].rows = 720
rra[0].pdp_per_row = 1
rra[0].xff = 0.0000000000e+00
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 10080
rra[1].pdp_per_row = 12
rra[1].xff = 0.0000000000e+00
rra[1].cdp_prep[0].value = 0.0000000000e+00
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 2016
rra[2].pdp_per_row = 60
rra[2].xff = 0.0000000000e+00
rra[2].cdp_prep[0].value = 0.0000000000e+00
rra[2].cdp_prep[0].unknown_datapoints = 0
rrd create option:
static const char cfg_str[] =
"DS:count:ABSOLUTE:5:0:U " /* prim is 5 sec sample/heartbeat */
"RRA:LAST:0:1:720 " /* prim samples for 1 hour LAST */
"RRA:AVERAGE:0:12:10080 " /* 1 min samples for a week */
"RRA:AVERAGE:0:60:2016 "; /* 5 min samples for a week */
Need Help in rrdtool fetch AVERAGE
Moderators: Developers, Moderators
Who is online
Users browsing this forum: No registered users and 4 guests