[rrd-users] Re: Graphing total MBs used in a month
Alex van den Bogaerdt
alex at ergens.op.HET.NET
Mon Jun 24 11:49:34 MEST 2002
=?iso-8859-1?Q?I=F1aki_Mart=EDnez?= wrote:
> OK.... i have this......
>
> --start -2h --end now
> DEF:in=file.rdd:in:AVERAGE
> CDEF:tin=in,7200,*,1024,/
> DEF:out=file.rrd:out:AVERAGE
> CDEF:tout=out,7200,*,1024,/
OK, tin and tout are now "(rate * 7200) / 1024". Rate is in "B/s",
7200 is in "s" so rate*7200 is in "B/s*s" equalling "B". After
dividing by 1024 you end up with KibiBytes, not MebiBytes.
(Unless of course your "file.rrd" measures something other than
bytes per second).
Let's look at the numbers. If the rate is 1000 bytes per second,
tin would become 7031.25 KiBi.
If the AVERAGE rate would be 1000 then the AVERAGE tin would also
be 7031.25
> GPRINT:tin:LAST:"Total\: %9.0lf "
This is not the average.
> GPRINT:tout:LAST:"Total\: %9.0lf "
Dito
> > >Use rrdtool graph *without* graphing elements but *with* PRINT (not
> > >GPRINT) do calculate the average.
>
> Can you write and example????
Sure. I just cut'n'paste if you don't mind.
--start -2h --end now
DEF:in=file.rdd:in:AVERAGE
CDEF:tin=in,7200,*,1024,/
DEF:out=file.rrd:out:AVERAGE
CDEF:tout=out,7200,*,1024,/
PRINT:tin:LAST:"Total\: %9.0lf "
PRINT:tout:LAST:"Total\: %9.0lf "
Note that the only thing changing is:
> > >Use rrdtool graph *without* graphing elements but *with* PRINT (not
> > >GPRINT) do calculate the average.
So: I removed any LINEx,AREA and so on. I s/GPRINT/PRINT/ and that's
it. The name of the image, would it have been present. would have been
changed into /dev/null.
> in this list archive there is NO info about this topic.
I'm sure I mailed this previously and no I am not going to search for it.
--
__________________________________________________________________
/ 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