[mrtg] cfgmaker failing

Steve Shipway s.shipway at auckland.ac.nz
Thu Jan 24 23:47:57 CET 2013


You seem to have a typo in the IP address:

 

[root at tuxnldds01 tuxnldds01]# cfgmaker --global 'WorkDir:
/var/www/html/tuxnldds01/' --global 'Options[_]: bits,growright' -output
./tuxnldds01.cfg 10.10.110.31

 

Uses 10.10.110.31

 

[root at tuxnldds01 tuxnldds01]# snmpwalk -v 1 -c public 10.10.100.31
1.3.6.1.2.1.1

 

Uses 10.10.100.31

 

Either the first is using the wrong IP address, or your second is testing
the wrong IP and the original IP is still blocking by ACL or community.

 

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
tommy.turner at vaisala.com
Sent: Friday, 25 January 2013 11:43 a.m.
To: mrtg at lists.oetiker.ch
Subject: [mrtg] cfgmaker failing

 

Hi, 

I’m having problems getting cfgmaker to read a linux box. This is running
on a CentOS box as a yum installed binary. 

I do have this system already reading data from a Cisco switch, so I suspect
the binaries are working fine.

 

Any ideas would be appreciated.

 

The error looks like snmp is the issue:

 

[root at tuxnldds01 tuxnldds01]# cfgmaker --global 'WorkDir:
/var/www/html/tuxnldds01/' --global 'Options[_]: bits,growright' -output
./tuxnldds01.cfg 10.10.110.31

SNMP Error:

no response received

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

                  community: "public"

                 request ID: -1464189512

                PDU bufsize: 8000 bytes

                    timeout: 2s

                    retries: 5

                    backoff: 1)

at /usr/bin/../lib64/mrtg2/SNMP_util.pm line 627

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

at /usr/bin/cfgmaker line 918

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

 

[root at tuxnldds01 tuxnldds01]#

 

However snmpwalk against that mib seems to work just fine:

 

[root at tuxnldds01 tuxnldds01]# snmpwalk -v 1 -c public 10.10.100.31
1.3.6.1.2.1.1

SNMPv2-MIB::sysDescr.0 = STRING: Linux tuxnldds01 2.6.18-308.24.1.el5 #1 SMP
Tue Dec 4 17:43:34 EST 2012 x86_64

SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (674356) 1:52:23.56

SNMPv2-MIB::sysContact.0 = STRING: nccops at vaisala.com

SNMPv2-MIB::sysName.0 = STRING: tuxnldds01

SNMPv2-MIB::sysLocation.0 = STRING: "Tucson DataCenter"

SNMPv2-MIB::sysORLastChange.0 = Timeticks: (4) 0:00:00.04

SNMPv2-MIB::sysORID.1 = OID: SNMPv2-MIB::snmpMIB

SNMPv2-MIB::sysORID.2 = OID: TCP-MIB::tcpMIB

SNMPv2-MIB::sysORID.3 = OID: IP-MIB::ip

SNMPv2-MIB::sysORID.4 = OID: UDP-MIB::udpMIB

SNMPv2-MIB::sysORID.5 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup

SNMPv2-MIB::sysORID.6 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance

SNMPv2-MIB::sysORID.7 = OID: SNMP-MPD-MIB::snmpMPDCompliance

SNMPv2-MIB::sysORID.8 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance

SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module for SNMPv2 entities

SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for managing TCP
implementations

SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing IP and ICMP
implementations

SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing UDP
implementations

SNMPv2-MIB::sysORDescr.5 = STRING: View-based Access Control Model for SNMP.

SNMPv2-MIB::sysORDescr.6 = STRING: The SNMP Management Architecture MIB.

SNMPv2-MIB::sysORDescr.7 = STRING: The MIB for Message Processing and
Dispatching.

SNMPv2-MIB::sysORDescr.8 = STRING: The management information definitions
for the SNMP User-based Security Model.

SNMPv2-MIB::sysORUpTime.1 = Timeticks: (3) 0:00:00.03

SNMPv2-MIB::sysORUpTime.2 = Timeticks: (3) 0:00:00.03

SNMPv2-MIB::sysORUpTime.3 = Timeticks: (3) 0:00:00.03

SNMPv2-MIB::sysORUpTime.4 = Timeticks: (3) 0:00:00.03

SNMPv2-MIB::sysORUpTime.5 = Timeticks: (3) 0:00:00.03

SNMPv2-MIB::sysORUpTime.6 = Timeticks: (4) 0:00:00.04

SNMPv2-MIB::sysORUpTime.7 = Timeticks: (4) 0:00:00.04

SNMPv2-MIB::sysORUpTime.8 = Timeticks: (4) 0:00:00.04

[root at tuxnldds01 tuxnldds01]#

 

I have a very simple snmp.cfg:

[root at tuxnldds01 tuxnldds01]# more /etc/snmp/snmpd.conf

rocommunity  public

syslocation  "Tucson DataCenter"

syscontact  nccops at vaisala.com

 

SNMPDOPTS='-Lsd -Lf /dev/null -u snmp -I -smux

[root at tuxnldds01 tuxnldds01]#

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


More information about the mrtg mailing list