[rrd-users] Need Help in rrdtool fetch AVERAGE

Simon Hobson linux at thehobsons.co.uk
Tue Nov 9 07:41:47 CET 2010


Ponnusamy, Sankar Kumar wrote:

>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

And if you round your start and end times to be integer multiples of 300 ?

-- 
Simon Hobson

Visit http://www.magpiesnestpublishing.co.uk/ for books by acclaimed
author Gladys Hobson. Novels - poetry - short stories - ideal as
Christmas stocking fillers. Some available as e-books.



More information about the rrd-users mailing list