cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
10057
Views
0
Helpful
5
Replies

MRTG configuration

julienf28
Level 1
Level 1

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,

5 Replies 5

Pavel Bykov
Level 5
Level 5

Configure SNMP on your switch.

Use access-lists as to not allows anybody in.

SNMP uses port 161 queries and 162 for traps.

i.e.:

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:

http://www.cisco.com/en/US/customer/products/hw/switches/ps5528/products_configuration_guide_chapter09186a00803a9b16.html

yasirirfan
Level 4
Level 4

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.

http://forums.cacti.net/about14946.html

Cheers

Yasir

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?

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

mnorwood
Level 1
Level 1

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.

http://www.plixer.com/support/mrtg_repository.php

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card