MRTG configuration

Unanswered Question
Aug 2nd, 2007

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,

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Pavel Bykov Fri, 08/03/2007 - 05:20

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 Fri, 08/03/2007 - 22:16

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

julienf28 Mon, 08/13/2007 - 09:26

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?

harry.hambi@bbc... Wed, 01/02/2008 - 05:30

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 Thu, 01/03/2008 - 06:21

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

Actions

This Discussion