[rrd-users] Re: rrdfetch (what type is the returned data)?
Alex van den Bogaerdt
alex at slot.hollandcasino.nl
Fri Jan 25 01:02:14 MET 2002
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
More information about the rrd-users
mailing list