Generic Interface - Traffic max link speed settings?

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
francois_j
Posts: 5
Joined: Sun Jan 18, 2009 5:54 pm
Location: Montreal

Generic Interface - Traffic max link speed settings?

Post by francois_j »

Hello,

I have this nice graph that host an aberration. The graph bellow is made out of SNMP network interface query and graphed out of "Interface - Traffic (bits/sec, Total Bandwidth)"

I would like to specify the maximum value possible for the counter. The physical interface is a 100mbit link but it's connected to a 5mbit DSL line.

As you can see in the graph, 52mbit/sec isn't real.

Code: Select all

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=1233144619 \
--end=1233231019 \
--title="Gateway - Traffic - ppp0/9" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
COMMENT:"From 2009/01/28 07\:10\:19 To 2009/01/29 07\:10\:19\c" \
COMMENT:"  \n" \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti/rra/gateway_traffic_in_22.rrd":traffic_in:AVERAGE \
DEF:b="/var/www/html/cacti/rra/gateway_traffic_in_22.rrd":traffic_in:MAX \
DEF:c="/var/www/html/cacti/rra/gateway_traffic_in_22.rrd":traffic_out:AVERAGE \
DEF:d="/var/www/html/cacti/rra/gateway_traffic_in_22.rrd":traffic_out:MAX \
CDEF:cdefa=a,8,* \
CDEF:cdefd=b,8,* \
CDEF:cdeff=c,8,* \
CDEF:cdefi=d,8,* \
AREA:cdefa#00CF00FF:"Inbound"  \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefd:MAX:"Maximum\:%8.2lf %s"  \
COMMENT:"Total In\:  3.25 GB\n"  \
LINE1:cdeff#002A97FF:"Outbound"  \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefi:MAX:"Maximum\:%8.2lf %s"  \
COMMENT:"Total Out\: 3.54 GB" 
Attachments
graph_image.png
graph_image.png (36.69 KiB) Viewed 2442 times
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

You may change the maximum by using "rrdtool tune" against that very rrd file.
Reinhard
francois_j
Posts: 5
Joined: Sun Jan 18, 2009 5:54 pm
Location: Montreal

Post by francois_j »

Thanks Gandalf,

Is "rrdtool tune" part of the Cacti interface or is this accessible only in CLI?

Thank you
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Only CLI at this time.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

cli only, unfortunately
Reinhard
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests