[rrd-users] Need Help in rrdtool fetch AVERAGE
Ponnusamy, Sankar Kumar
sankarkumar.ponnusamy at etrade.com
Tue Nov 9 09:31:24 CET 2010
Thanks for your reply Simon . We already have rrd with 5-Mins of AVERAGE and requirement is in addition 5-Mins I want to add 1-Mins AVERAGE data too .
I done added 1-Min AVERAGE in rrd config and now I want to fetch 1-Min AVG data to generate some report .
Your approach like integer multiples of 300 is good approach but you know this will require lot of code changes in existing 5-Mins process. thats the reason I trying with --resolution 60/300 for fetch corresponding data . So would be great if you can help me to fix with -r option .
-----Original Message-----
From: rrd-users-bounces+sankarkumar.ponnusamy=etrade.com at lists.oetiker.ch [mailto:rrd-users-bounces+sankarkumar.ponnusamy=etrade.com at lists.oetiker.ch] On Behalf Of Simon Hobson
Sent: Monday, November 08, 2010 10:42 PM
To: rrd-users at lists.oetiker.ch
Subject: Re: [rrd-users] Need Help in rrdtool fetch AVERAGE
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.
_______________________________________________
rrd-users mailing list
rrd-users at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users
More information about the rrd-users
mailing list