# [rrd-users] Re: Calculating traffic

Iñaki Martínez sistema at euskal-linux.org
Thu Jun 27 14:30:16 MEST 2002

```Hi All!!!

First thank you all for all your help, i am learning too much, THANKS!!!

> >  then from the above example (tutorial):
> >
> >  60 * 288 * 797 = 13772160 segs =~ 159 days
>
> In tutorial the step is 300 (300/60 = 5), 159 * 5 = 795 ie. like in the
> tutorial.

Well..... i was wrong again..... :-(

> >  but in the tutorial says 732 days
> >
> >  I am confused.......
> >
> >  Then.....
> >  must i change 3725 for 9135.... ?????
> >  must i change all???
>
> Yes

Ok... i MUST CHANGE ALL!!!!!

But i am too confussed now to know/calculate the values.

Can you help me with this????

If i want to make this kind of graphs:

graph of 1 hour (last one)
graph of 2 hours (last one)
graph of 1 day (last one)
graph of 1 week (last one)
graph of 1 month (last one)
graph of 1 year (last one)
graph of 2 years (last ones)
graph of 1 year (1 year ago)
graph of 1 year (2 year ago)
graph of 1 year (3 year ago)
graph of 1 year (4 year ago)
graph of 1 year (5 year ago)

servers: swap, ram, processes, ethernet, partitions, cpus, ...
switchs: ports, ...

Now i have the following
(all rrd files have the same values in step, heartbeat and RRA,
DS has diferent names and DST is diferent for Ethernet):

rrdtool create XXXX.rrd --step 60 \
DS:in:GAUGE:600:U:U             \
DS:out:GAUGE:600:U:U            \
RRA:AVERAGE:0.5:1:600           \
RRA:AVERAGE:0.5:6:700           \
RRA:AVERAGE:0.5:24:775          \
RRA:AVERAGE:0.5:288:3725        \
RRA:MAX:0.5:1:1:600             \
RRA:MAX:0.5:6:700               \
RRA:MAX:0.5:24:775              \
RRA:MAX:0.5:288:3725

The IMPORTANT questions (with the information above):

* how many RRAs and with which values must i use???

* What hearbeat and step values are the correct????

NOTA: i get data each minute.