[mrtg] Hilfe

Steve Shipway s.shipway at auckland.ac.nz
Tue Mar 6 21:42:45 CET 2012


This sort of switch does support SNMP, so it should work.  You should check
–

1.       Is SNMP community configured correctly on the switch?  You are
using ‘public’ for cfgmaker, is this also defined on the switch?

2.       Is the ACL on the switch configured correctly to allow access from
this IP address with this community?

3.       Are there any firewalls in the way preventing UDP 161 from reaching
the switch?

4.       Do you have a route to the switch at all (try doing a ping to
verify)?

5.       Do you have a firewall on the MRTG server which is blocking the
SNMP reply packets?

6.       Are you using the correct SNMP version – should you use SNMPv2c
instead (your example below is using v1) or SNMPv3?

7.       Is the switch or network so heavily congested that it is slow
replying?  Try increasing timeout and/or retries count using the other
fields in the --snmp-options parameter.

 

Steve

 

  _____  

Steve Shipway

ITS Unix Services Design Lead

University of Auckland, New Zealand

Floor 1, 58 Symonds Street, Auckland

Phone: +64 (0)9 3737599 ext 86487

DDI: +64 (0)9 924 6487

Mobile: +64 (0)21 753 189

Email:  <mailto:s.shipway at auckland.ac.nz> s.shipway at auckland.ac.nz

P Please consider the environment before printing this e-mail 

 

 

From: Rolf Tschumi [mailto:rts at softplus.net] 
Sent: Tuesday, 6 March 2012 9:56 p.m.
To: Steve Shipway
Cc: mrtg at lists.oetiker.ch
Subject: AW: Hilfe

 

Cfgmaker can not connect to the Switch with Cat OS.  

 

All other switch with IOS is working. 

 

---------------------------------------------------------

 

 

root at srv1:~# cfgmaker public at 91.201.56.178

SNMP Error:

no response received

SNMPv1_Session (remote host: "91.201.56.178" [91.201.56.178].161)

                  community: "public"

                 request ID: 1874573181

                PDU bufsize: 8000 bytes

                    timeout: 2s

                    retries: 5

                    backoff: 1)

 at /usr/share/perl5/SNMP_util.pm line 629

SNMPWALK Problem for 1.3.6.1.2.1.1 on public at 91.201.56.178::::::v4only

 at /usr/bin/cfgmaker line 959

WARNING: Skipping public at 91.201.56.178: as no info could be retrieved

 

# Created by

# /usr/bin/cfgmaker public at 91.201.56.178

 

 

### Global Config Options

 

#  for UNIX

# WorkDir: /home/http/mrtg

 

#  for Debian

WorkDir: /var/www/mrtg

 

#  or for NT

# WorkDir: c:\mrtgdata

 

### Global Defaults

 

#  to get bits instead of bytes and graphs growing to the right

# Options[_]: growright, bits

 

EnableIPv6: no

 

######################################################################

# System:

# Description:

# Contact:

# Location:

######################################################################

  _____  

Von: Steve Shipway [mailto:s.shipway at auckland.ac.nz] 
Gesendet: Dienstag, 6. März 2012 00:42
An: Rolf Tschumi; mrtg at lists.oetiker.ch
Betreff: RE: Hilfe

 

Create a configuration file for MRTG using cfgmaker.  You can use pretty
much the same method to monitor any SNMP switch or router, not just Cisco.
Here is an example using some general options:

 

cfgmaker --ifdesc=catname,ppname,descr,alias,ip,name,nr --ifref=ip,name,nr
--global=’WorkDir: /var/rrdtool’ --global=’LogFormat: rrdtool’
--global='Options[_]: bits,growright' --show-op-down --output=device.cfg
--snmp-options=:::::2  --community=community   device

 

 

Replace ‘community’ and ‘device’ as appropriate.  This will omit interfaces
with a speed of zero or that are administratively down; you can add
‘--no-down’ if you want to graph these anyway.

 

You can find more information in the cfgmaker documentation; unfortunately
for you it is in English.  I don’t know if there is a German translation
available anywhere


 

Steve

 

 

 

  _____  

Steve Shipway

ITS Unix Services Design Lead

University of Auckland, New Zealand

Floor 1, 58 Symonds Street, Auckland

Phone: +64 (0)9 3737599 ext 86487

DDI: +64 (0)9 924 6487

Mobile: +64 (0)21 753 189

Email:  <mailto:s.shipway at auckland.ac.nz> s.shipway at auckland.ac.nz

P Please consider the environment before printing this e-mail 

 

 

From: mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch
[mailto:mrtg-bounces+s.shipway=auckland.ac.nz at lists.oetiker.ch] On Behalf Of
Rolf Tschumi
Sent: Tuesday, 6 March 2012 2:59 a.m.
To: mrtg at lists.oetiker.ch
Subject: [mrtg] Hilfe

 

Wie kann ich mit mrtg / cfgmaker  einen Cisco 6509 mit CATos  die Interfaces
Monitoren ?  

 

 

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20120306/3712fd36/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6080 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20120306/3712fd36/attachment-0001.bin 


More information about the mrtg mailing list