[rrd-users] Re: create new rra (monthly 5 minutes average)

Stephan Harren sh at abovenet.de
Wed Dec 3 14:40:42 MET 2003


see below:

Am Dienstag, 2. Dezember 2003 16:28 schrieb Andras Horvai:
> Hi,
>
> I would like to create a new rra as I wrote in the e-mail subject, monthly
> 5 minutes average. But I miss something. When I create the graph it exactly
> represents the same graph what the monthly 2 hours average. What can be
> wrong?
>
> this is the source of the graph:
>
> rrdtool graph - \
> --imgformat=PNG \
> --start=-2678400 \
> --title="stat" \
> --rigid \
> --base=1000 \
> --height=120 \
> --width=500 \
> --alt-autoscale-max \
> --lower-limit=0 \
> --vertical-label="bits per second" \
> DEF:a="/cacti/traffic_198.rrd":traffic:AVERAGE \
> DEF:b="/cacti/traffic_199.rrd":traffic:AVERAGE \
> CDEF:cdefa=a,8,* \
> CDEF:cdefh=b,8,* \
> AREA:cdefa#00CF00:"Inbound"  \
> GPRINT:cdefa:LAST:" Current\:%8.2lf %s"  \
> GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
> GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"  \
> COMMENT:"\n"  \
> HRULE:0#FF0000:"95th Percentile"  \
> COMMENT:"(0 kbit in)\n"  \
> LINE1:cdefh#002A97:"Outbound"  \
> GPRINT:cdefh:LAST:"Current\:%8.2lf %s"  \
> GPRINT:cdefh:AVERAGE:"Average\:%8.2lf %s"  \
> GPRINT:cdefh:MAX:"Maximum\:%8.2lf %s\n"  \
> COMMENT:"\n"  \
> HRULE:0#000000:"95th Percentile"  \
> COMMENT:"(0 kbit out)"
>
>
> rrdtool create \
> /cacti/traffic_199.rrd \
> --step 300  \
> DS:traffic:COUNTER:600:0:100000000 \

Your maximum is probably wrong, you'll have to divide it by 8 if you don't 
want to allow peaks that are 800 MBit/s.

> RRA:AVERAGE:0.5:1:600 \
> RRA:AVERAGE:0.5:6:700 \
> RRA:AVERAGE:0.5:1:17280 \
> RRA:AVERAGE:0.5:24:775 \
> RRA:AVERAGE:0.5:288:797 \

Why do you keep two times 0.5:1 ? I don't think that this will work. Kick the 
lines RRA:AVERAGE:0.5:1:600 so that it will look like:
RRA:AVERAGE:0.5:1:17280
RRA:AVERAGE:0.5:6:700
RRA:AVERAGE:0.5:24:775
RRA:AVERAGE:0.5:288:79
RRA:MAX:0.5:1:17280
RRA:MAX:0.5:6:700 
RRA:MAX:0.5:24:775 
RRA:MAX:0.5:288:797

Do that for both datasources!

HTH,

Stephan
-- 
Stephan Harren
Manager Site Operations
AboveNet Deutschland GmbH
-------------------------------
Phone +49 69 90554 153
Fax +49 69 90554 111
Cell +49 173 7011126

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