[rrd-users] Re: rrdtool fetch returns in scientific notation (help!)

Clifton Royston cliftonr at lava.net
Thu Apr 12 00:46:05 MEST 2001


On Wed, Apr 11, 2001 at 03:31:38PM -0700, Sandor W. Sklar wrote:
> 
> Hi, Folks ...
> 
> I'm brand-new at using rrdtool, and I'm trying to get my feet wet 
> with a simple RRD, but I'm already hitting a problem:
> 
> First, I'm using ... $ rrdtool -v
> RRDtool 1.0.33  Copyright 1997-2001 by Tobias Oetiker <tobi at oetiker.ch>
> 
> ... built on AIX 433, with native C for AIX (xlC) compiler.
> 
> I create a new RRD with the command ...
> 
> rrdtool create test.rrd --start 987015000 DS:aio:COUNTER:600:U:U 
> RRA:AVERAGE:0.5:1:300

  A "COUNTER" in RRD terminology is an SNMP counter, and is presumed to
be used as a source of a rate in units/second; this means that when you
define an RRD as a Counter, it will not store the values you put into
it; instead, it is being asked to store the difference between two
successive stored values, divided by the number of seconds in the
interval.

  I believe if you look at the numbers here:

> 987015300:3 \
> 987015600:4 \
> 987015900:5 \
> 987016200:5 \
> 987016500:5 \

 and divide the differences by 300, you will get:

>   987015600: 3.3333333333e-03
>   987015900: 3.3333333333e-03
>   987016200: 0.0000000000e+00
>   987016500: 0.0000000000e+00

  etc.

  If you want it to store unaltered values, you want the GAUGE
datatype.
  -- Clifton

-- 
 Clifton Royston  --  LavaNet Systems Architect --  cliftonr at lava.net
   WWJD?   "JWRTFM!" - Scott Dorsey (kludge)   "JWG" - Eddie Aikau

--
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://www.ee.ethz.ch/~slist/rrd-users
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the rrd-users mailing list