<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 2px solid; } --></style>
</head>
<body>
<font face="Arial, sans-serif" size="3">
<div>Hi,<br>
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 .
<br>
<br>
Below two fetch command returning same 60 secs ouptut. <br>
#rrdtool fetch testing.rrd AVERAGE -r 60 -s 1289261655 -e 1289261975<br>
1289261640: nan<br>
1289261700: nan<br>
1289261760: 0.0000000000e+00<br>
1289261820: 0.0000000000e+00<br>
1289261880: 0.0000000000e+00<br>
1289261940: 0.0000000000e+00<br>
1289262000: nan<br>
<br>
#rrdtool fetch testing.rrd AVERAGE -r 300 -s 1289261655 -e 1289261975<br>
1289261640: nan<br>
1289261700: nan<br>
1289261760: 0.0000000000e+00<br>
1289261820: 0.0000000000e+00<br>
1289261880: 0.0000000000e+00<br>
1289261940: 0.0000000000e+00<br>
1289262000: nan<br>
<br>
Here rrd info: <br>
#rrdtool info testing.rrd<br>
filename = "testing.rrd"<br>
rrd_version = "0001"<br>
step = 5<br>
last_update = 1289261960<br>
ds[count].type = "ABSOLUTE"<br>
ds[count].minimal_heartbeat = 5<br>
ds[count].min = 0.0000000000e+00<br>
ds[count].max = NaN<br>
ds[count].last_ds = "UNKN"<br>
ds[count].value = 0.0000000000e+00<br>
ds[count].unknown_sec = 0<br>
rra[0].cf = "LAST"<br>
rra[0].rows = 720<br>
rra[0].pdp_per_row = 1<br>
rra[0].xff = 0.0000000000e+00<br>
rra[0].cdp_prep[0].value = NaN<br>
rra[0].cdp_prep[0].unknown_datapoints = 0<br>
rra[1].cf = "AVERAGE"<br>
rra[1].rows = 10080<br>
rra[1].pdp_per_row = 12<br>
rra[1].xff = 0.0000000000e+00<br>
rra[1].cdp_prep[0].value = 0.0000000000e+00<br>
rra[1].cdp_prep[0].unknown_datapoints = 0<br>
rra[2].cf = "AVERAGE"<br>
rra[2].rows = 2016<br>
rra[2].pdp_per_row = 60<br>
rra[2].xff = 0.0000000000e+00<br>
rra[2].cdp_prep[0].value = 0.0000000000e+00<br>
rra[2].cdp_prep[0].unknown_datapoints = 0<br>
<br>
<br>
rrd create option:<br>
static const char cfg_str[] =<br>
"DS:count:ABSOLUTE:5:0:U " /* prim is 5 sec sample/heartbeat */<br>
"RRA:LAST:0:1:720 " /* prim samples for 1 hour LAST */<br>
"RRA:AVERAGE:0:12:10080 " /* 1 min samples for a week */<br>
"RRA:AVERAGE:0:60:2016 "; /* 5 min samples for a week */ </div>
<div> </div>
<div><font face="Arial, sans-serif" size="2"> </font></div>
</font>
</body>
</html>