[rrd-users] Re: rrdtool fetch return values
Frank.Harper at turbomeca.fr
Tue Mar 14 17:13:07 MET 2000
Thanks for the reply Rainer. I definitely understand the issues involved better
You're correct I'm trying to get the last row out of the RRD.
As you suggested, I tried using "rrdtool last", but the result isn't
As an example, "rrdtool last" just returned 953049305. But since the last row
available is for 953049300, I still get 2 rows back when I call "rrdtool
Any more ideas?
Rainer.Bawidamann at informatik.uni-ulm.de wrote:
> Frank Harper wrote:
> > my ($time,$step,$names,$data) = RRDs::fetch($filePath,"AVERAGE",
> > "--start","now",
> > "--end","now");
> > Two data points are returned:
> > Tue Mar 14 09:00:00 2000 (953020800) av=6178.09084612431
> > Tue Mar 14 09:05:00 2000 (953021100) av=NaN
> > Will fetch always return an extra NaN data point?
> You requested the values for 'now' which was something between
> "Tue Mar 14 09:00:00 2000" and "Tue Mar 14 09:05:00 2000" (in epoch time:
> 953020800 and 953021100). If you give 953020800 as start and end time you
> will get only one value. If you request a value for a time which isn't in
> the rrd file (*) you will get the value fetched before and after that time.
> You can get the time of the last value with "rrdtool last".
> Bye ... Rainer
> (*) this definition is very blurred but I think you'll get the point
> Rainer.Bawidamann at informatik.uni-ulm.de
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
More information about the rrd-users