[rrd-users] problem fetching from RRDs...

John Whyte johnw at pipex.net
Mon Jul 11 17:17:37 MEST 2005


Hi Guys,

I've created a version 1.2 RRD file using the following...

rrdtool create testrrd.rrd --step 300 \
 -b 1119221000 \
 DS:IN:DERIVE:300:0:U \
 DS:OUT:DERIVE:300:0:U \
 RRA:MAX:0.5:1:13393 \
 RRA:AVERAGE:0.5:288:797

I've updated using the following...

rrdtool update testrrd.rrd \
1119222097:1770925728:53750116764 \
1119222399:1773220458:53825364645 \
1119222701:1775486806:53900771913 \
1119223003:1777770800:53976181279 \
1119223305:1780065830:54051653991 \
1119223607:1782526318:54126713452 \
1119223909:1785078331:54202010310 \
1119224211:1787382027:54277155589 \
1119224513:1789615264:54352760807

RRD reports no errors.  In fact, rrdtool info gives me back what I would
expect...

legion:~/script$ rrdtool info testrrd.rrd | grep last 
last_update = 1119224513 
ds[IN].last_ds = "1789615264" 
ds[OUT].last_ds = "54352760807" 

However, when I try to get the data back out again using rrdtool fetch,
all I get is nan.

legion:~/script$ rrdtool fetch testrrd.rrd MAX -s 1119222000 -e
1119225000
                             IN                 OUT

1119222300: nan nan
1119222600: nan nan
1119222900: nan nan
1119223200: nan nan
1119223500: nan nan
1119223800: nan nan
1119224100: nan nan
1119224400: nan nan
1119224700: nan nan
1119225000: nan nan

So I tried using updatev and got

legion:~/script$ rrdtool create testrrd.rrd --step 300  -b 1119221000
DS:IN:DERIVE:300:0:U  DS:OUT:DERIVE:300:0:U  RRA:MAX:0.5:1:13393
RRA:AVERAGE:0.5:288:797 

legion:~/script$ rrdtool updatev testrrd.rrd \ >
1119222097:1770925728:53750116764 \ > 1119222399:1773220458:53825364645\
> 1119222701:1775486806:53900771913 \
> 1119223003:1777770800:53976181279 \
> 1119223305:1780065830:54051653991 \
> 1119223607:1782526318:54126713452 \
> 1119223909:1785078331:54202010310 \
> 1119224211:1787382027:54277155589 \
> 1119224513:1789615264:54352760807
return_value = 0
[1119221100]RRA[MAX][1]DS[IN] = NaN
[1119221100]RRA[MAX][1]DS[OUT] = NaN
[1119221400]RRA[MAX][1]DS[IN] = NaN
[1119221400]RRA[MAX][1]DS[OUT] = NaN
[1119221700]RRA[MAX][1]DS[IN] = NaN
[1119221700]RRA[MAX][1]DS[OUT] = NaN
[1119222000]RRA[MAX][1]DS[IN] = NaN
[1119222000]RRA[MAX][1]DS[OUT] = NaN
[1119222300]RRA[MAX][1]DS[IN] = NaN
[1119222300]RRA[MAX][1]DS[OUT] = NaN
[1119222600]RRA[MAX][1]DS[IN] = NaN
[1119222600]RRA[MAX][1]DS[OUT] = NaN
[1119222900]RRA[MAX][1]DS[IN] = NaN
[1119222900]RRA[MAX][1]DS[OUT] = NaN
[1119223200]RRA[MAX][1]DS[IN] = NaN
[1119223200]RRA[MAX][1]DS[OUT] = NaN
[1119223500]RRA[MAX][1]DS[IN] = NaN
[1119223500]RRA[MAX][1]DS[OUT] = NaN
[1119223800]RRA[MAX][1]DS[IN] = NaN
[1119223800]RRA[MAX][1]DS[OUT] = NaN
[1119224100]RRA[MAX][1]DS[IN] = NaN
[1119224100]RRA[MAX][1]DS[OUT] = NaN
[1119224400]RRA[MAX][1]DS[IN] = NaN
[1119224400]RRA[MAX][1]DS[OUT] = NaN
legion:~/script$


Which suggests that data is not getting put into the RRA's.  Has anyone
got any idea what is going on here, and how to fix it such that RRD
fetch returns the correct values?

Thanks

John

-- 
John Whyte <johnw at pipex.net>

--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help        mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive     http://lists.ee.ethz.ch/rrd-users
WebAdmin    http://lists.ee.ethz.ch/lsg2.cgi



More information about the rrd-users mailing list