[rrd-users] Re: Calculating traffic
serge.maandag at staff.zeelandnet.nl
Tue Jun 25 17:12:55 MEST 2002
Well, if I'm correct:
Your step is 60 and your heartbeat is 600. Your hires RRA has a xff of
So your graph will have a resolution of 1 value per 10 minutes tops
(600). Your RRD expects to be updated every minute (60). That makes 10
updates per value. Your DS will have the average value of those 10
updates. If you miss more than 5 of those updates (0.5x10), you're value
will be regarded unknown.
Since you're accounting traffic, you could update your RRA at a much
larger interval than once per minute. It saves on cpu and snmp traffic.
Choose the largest interval in which your counters do not overflow. try
half an hour for starters. If your updates don't fail often, you don't
need multiple updates per value (which is called CDP). If so, make the
step size equal to the heartbeat of your DS.
rrdtool create port_xxx.rdd --step 1800 \
From: Iñaki Martínez [mailto:sistema at euskal-linux.org]
Sent: dinsdag 25 juni 2002 11:22
To: rrd-users at list.ee.ethz.ch
Cc: Alex van den Bogaerdt
Subject: [rrd-users] Re: Calculating traffic
Hi Alex van den Bogaerdt!!!
First, thanks for answering....
> > so, i look at the number...
> > 36159401
> > 36148921 lesser
> > 36220119
> > Some times i've got confusing numbers....
> > have i something wrong??????
> How so? You're calculating the number of bytes send during the
> *last*two*hours*. If you slow down sending (a lower rate) then
> the total amount will be lower.
> In extremis: if you stop sending traffic at all and do the
> again after two hours, the total will become 0. This is true because
> you didn't send any byte *during*the*last*two*hours*.
Well.... i will start form the beginning....
The rrd file......
rrdtool create port_xxx.rdd --step 60 \
3725 = 5 years!!!!
I get via snmp each minute the trafic from the switch port xxx.
How can i do this better???
I mean, the rrd file is saving each 5 minutes while i get data each
I do not understand very well the structure of the rrd file.
The graphic (new update):
GPRINT:tin:AVERAGE:"B/s\: %9.0lf "
GPRINT:in:MAX:"Max\: %9.0lf "
GPRINT:in:AVERAGE:"Ave\: %6.0lf "
GPRINT:tout:AVERAGE:"B/s\: %9.0lf "
GPRINT:out:MAX:"Max\: %9.0lf "
GPRINT:out:AVERAGE:"Ave\: %6.0lf "
GPRINT:out:LAST:"cur\: %6.0lf\c" >
One thing i do not like is that IN (green) area is very rough, i think
that is problem of the rrd file that save each five minutes.
Is it all OK?????
Is there something that i can improve???
Thanks in advance to all answers!!!!!!
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