I'm trying to configure MRTG on a system and I've got the 3550 swithc that I'm trying to configure. I would like to know how to get this information from the switch itself: The IP address or hostname and the SNMP port number of the device Iwant to monitor.
If you want to monitor something other than bytes in and out, you must also know the SNMPOID of what you want to monitor.
Finally you need to know the read-only SNMP community string for your device.
Thanks in advanced,
Configure SNMP on your switch.
Use access-lists as to not allows anybody in.
SNMP uses port 161 queries and 162 for traps.
snmp-server community READ_COMM RO 11
snmp-server community WRITE_COMM RW 12
access-list 11 permit host x.x.x.x (ip of your mrtg server)
access-list 11 permit host y.y.y.y (your ip)
interface IDs are displayed using following command:
show snmp mib ifmib ifindex
Otherwise you can browse cisco mibs.
here is some documents related to snmp setup:
Here is the link for MRTG and the tools required http://oss.oetiker.ch/mrtg/
active perl http://aspn.activestate.com/ASPN/Downloads/ActivePerl/ MRTG tutorials http://www.netmon.org/dummies.htm and sample online MRTG link If you want more details please let me know. Also if u have a managable switch then u can monitor all users connected to the switch.
Also you try cacti which is more efficient than MRTG .You can download from here & now its easier to install.
Thanks for the Cacti. It is easier to install except that I can't generate the graphs that I want. when I launch the debbuger, it gives me this error.
c:/rrdtool/rrdtool.exe graph - \
--title="VoIP switche01 - Traffic" \
--vertical-label="bits per second" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total In\: 0 bytes\n" \
GPRINT:cdeff:LAST:"Current\:%8.2lf %s" \
GPRINT:cdeff:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdeff:MAX:"Maximum\:%8.2lf %s" \
COMMENT:"Total Out\: 0 bytes"
ERROR: opening 'C:/Inetpub/wwwroot/cacti/rra/voip_switche01_traffic_in_185.rrd': No such file or directory
Would you be able to help?
It seems you have a leading / between c:\ and Inetpub. You need to remove this.
In cacti, go to data sources, find the relevant data sources, and edit the data source path
Check out this site for MRTG info. It has the various OID's you are probably looking for. I'm posting the general link as opposed to the Cisco specific one in case you want to use MRTG with other vendors' equipment. The Cisco repository does not have the latest info on the 1800, 2800, and 3800 series routers or the 2960 and 3560 switches, but you should be able to use the previous models to get the OID string and have the same result.