[rrd-users] Re: rrd fetch makes up numbers
cliftonr at lava.net
Mon Jan 22 19:32:49 MET 2001
On Sat, Jan 20, 2001 at 12:18:16PM -0800, Nemo wrote:
> Sorry I was away for a week.. So I tried that, I did cut and paste, and
> yes it gave me the right results like you have. However! If you actually
> update it normally like this:
> rrdtool update x.rrd N:49955 every minute, you get wrong results that I'm
> talking about!
> even doing this:
> rrdtool update x.rrd 980021640:49955
> then a minute later doing
> rrdtool update x.rrd 980021700:49955 and so on.
If his example works and yours doesn't, I really suspect there is
something slightly inconsistent in how you're scripting between the two
test cases. Maybe your "x.rrd" was created with subtly different
parameters than the other test case?
Try making two script files, one with the parameters Alex gave you that
works correctly, and one based on that same file, but edited to include
a "sleep 60" before each rrdtool update. That would eliminate the time
intervals as a difference between your "creating it normally".
I just noticed one difference between your example and Alex's - you
don't include a begin time for the RRD file at creation. Try making
that change also; maybe the default begin time is inappropriate for
> I'm running on Solaris 2.6 Ultra 5, using rrdtool-1.0.28
> I've noticed however, that if you deviate by 1 number (i.e. the number
> inserted each time is different from the last number inserted) then it
> works fine!
It could be there's a problem or bug in your rrdtool, it just seems odd
that nobody else has run into this. If my above suggestion doesn't
help you narrow in on the problem, try recompiling and reinstalling it?
> On Sun, 14 Jan 2001, Alex van den Bogaerdt wrote:
> > Nemo wrote:
> > >
> > > rrdtool create file.rrd -s 60 DS:data:GAUGE:120:0:U RRA:LAST:0.5:1:10080
> > > rrdtool update file.rrd 979506480:49955
> > > rrdtool update file.rrd 979506540:49955
> > > rrdtool update file.rrd 979506600:49955
> > > rrdool fetch file.rrd LAST
> > > ...
> > > 979506420: NaN
> > > 979506480: 4.9223000000e+04
> > > 979506540: 3.9119216667e+04
> > > 979506600: 4.3294333333e+04
> > After doing s/rrdool/rrdtool/ :
> > 979506420: NaN
> > 979506480: 4.9955000000e+04
> > 979506540: 4.9955000000e+04
> > 979506600: 4.9955000000e+04
> > 979506660: NaN
> > So: please try again. Just use cut and paste. Make sure to do this in
> > a directory without a file called x.rrd
> > rrdtool create x.rrd -b 979506420 -s 60 DS:x:GAUGE:120:0:U RRA:LAST:0.5:1:10080
> > rrdtool update x.rrd 979506480:49955
> > rrdtool update x.rrd 979506540:49955
> > rrdtool update x.rrd 979506600:49955
> > rrdtool fetch x.rrd -s 979506420 -e 979506660 LAST
> > If it doesn't produce the correct numbers, retry with a recent version
> > of RRDtool.
> > cheers
Clifton Royston -- LavaNet Systems Architect -- cliftonr at lava.net
The named which can be named is not the Eternal named.
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