I can graph the switch via MRTG (I don't run RRD with MRTG) and can also get information out of the switch via snmpwalk (version 2).
In cacti, I selected the device with Host Template "Generic SNMP-enabled Host" and also selected SNMP version 2.
When I went to graph management, I was presented with all the interfaces (100 of them in total) for this switch and I asked it to graph traffic in and out and selected graph templte as "Interface - Traffic (bits/sec)"
I went to Graph Management, viewed a single Graph, pressed the "Debug" link and here is what I found:
Code: Select all
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="switch - Traffic - D22" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/srv/www/htdocs/cacti/rra/switch_traffic_in_21.rrd":traffic_in:AVERAGE \
DEF:b="/srv/www/htdocs/cacti/rra/switch_traffic_in_21.rrd":traffic_out:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=b,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
OK
Thanks for any help.