[rrd-users] Re: rrdfetch (what type is the returned data)?

Paul Klinaftakis pkli at forthnet.gr
Fri Jan 25 09:36:55 MET 2002


hm ... the funny thing is that what it does return to me is bytes/sec

isn't this weird?

under options I specified: bits



----- Original Message -----
From: "Alex van den Bogaerdt" <alex at slot.hollandcasino.nl>
To: "Paul Klinaftakis" <pkli at forthnet.gr>
Cc: "RRD users" <rrd-users at list.ee.ethz.ch>
Sent: Friday, January 25, 2002 2:02 AM
Subject: [rrd-users] Re: rrdfetch (what type is the returned data)?


>
> Paul Klinaftakis wrote:
> >
> > hi ... when doing an rrdfetch, what type is the returned data?
> >
> > For example, I collect my data through MRTG (with logformat: rrdtool).
The data are counters but with the Options parameter set to bits. Doing an
rrdfetch, what will be the return type (b/s, kb/s, ...)?
>
> Everything is (assumed to be) a rate.  The stored number will depend
> on what you input, and on which type of counter you use:
>
> COUNTER will compute   delta(counter) / delta(time)
> DERIVE  will compute   delta(counter) / delta(time)
> ABSLUTE will compute   counter / delta(time)
> GAUGE   will be passed directly
>
> The difference between DERIVE and COUNTER is that DERIVE can go
> backwards while COUNTER assumes that a wrap has occured if the newly
> received value is lower than the previous one.
> ABSOLUTE assumes that delta(counter) is what you give to rrdtool,
> GAUGE assumes that { delta(counter)/delta(time) } is given.
>
> The calculation depend on what you input.  If you input bits, the
> calculations work with bits and thus bits per second are stored.
> Same for bytes, kilobytes, miles, liters, gallons, whatever.
>
> While this is already elaborate you still may want to visit the
> mrtg faq and/or read the rrdtool manual pages.
>
> HTH
> --
>    __________________________________________________________________
>  / alex at slot.hollandcasino.nl                  alex at ergens.op.het.net \
> | work                                                         private |
> | My employer is capable of speaking therefore I speak only for myself |
> +----------------------------------------------------------------------+
> | Technical questions sent directly to me will be nuked. Use the list. |
> +----------------------------------------------------------------------+
> | http://faq.mrtg.org/                                                 |
> | http://rrdtool.eu.org  --> tutorial                                  |
> +----------------------------------------------------------------------+
>
> --
> 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
>
>


--
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