Showing results for 
Search instead for 
Did you mean: 

Community Helping Community


MRTG configuration

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,


Re: MRTG configuration

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:


Re: MRTG configuration

Here is the link for MRTG and the tools required

active perl MRTG tutorials 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.




Re: MRTG configuration

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.

RRDTool Command:

c:/rrdtool/rrdtool.exe graph - \

--imgformat=PNG \

--start=-86400 \

--end=-300 \

--title="VoIP switche01 - Traffic" \

--rigid \

--base=1000 \

--height=120 \

--width=500 \

--alt-autoscale-max \

--lower-limit=0 \

--vertical-label="bits per second" \

--slope-mode \

DEF:a="C\:/Inetpub/wwwroot/cacti/rra/voip_switche01_traffic_in_185.rrd":traffic_in:AVERAGE \

DEF:b="C\:/Inetpub/wwwroot/cacti/rra/voip_switche01_traffic_in_185.rrd":traffic_out:AVERAGE \

CDEF:cdefa=a,8,* \

CDEF:cdeff=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" \

COMMENT:"Total In\: 0 bytes\n" \

LINE1:cdeff#002A97:"Outbound" \

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"

RRDTool Says:

ERROR: opening 'C:/Inetpub/wwwroot/cacti/rra/voip_switche01_traffic_in_185.rrd': No such file or directory

Would you be able to help?


Re: MRTG configuration

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


Re: MRTG configuration

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.

CreatePlease to create content
Content for Community-Ad