[mrtg] 2.9.26 fails while 2.9.17 works fine

Martti Kuparinen martti.kuparinen at iki.fi
Mon Nov 18 16:47:28 MET 2002


Hi!

Could someone explain what's wrong with my setup...

The config file works fine with 2.9.17 but fails every time with 2.9.26.
Using snmpget manually works fine as well.

All ideas are welcome!

Martti



MRTG 2.9.17
===========
17:06:53.738276 www.mydomain.com.53196 > h2.mydomain.com.snmp: [udp sum ok]  { SNMPv1 { GetRequest(74) R=1164469728  interfaces.ifTable.ifEntry.ifInOctets.2 interfaces.ifTable.ifEntry.ifOutOctets.2 system.sysUpTime.0 system.sysName.0} }  (ttl 64, id 33780, len 117)
17:06:53.742035 h2.mydomain.com.snmp > www.mydomain.com.53196: [udp sum ok]  { SNMPv1 { GetResponse(96) R=1164469728  interfaces.ifTable.ifEntry.ifInOctets.2=3568290625 interfaces.ifTable.ifEntry.ifOutOctets.2=3147257617 system.sysUpTime.0=516354301 system.sysName.0="homepna1"} }  (ttl 30, id 32405, len 139)

MRTG 2.9.26
===========
17:09:38.546524 www.mydomain.com.53182 > h2.mydomain.com.snmp: [udp sum ok]  { SNMPv1 { GetRequest(74) R=-587621008  interfaces.ifTable.ifEntry.ifInOctets.2 interfaces.ifTable.ifEntry.ifOutOctets.2 system.sysUpTime.0 system.sysName.0} }  (ttl 64, id 39233, len 117)
17:09:38.550369 h2.mydomain.com.snmp > www.mydomain.com.53182: [udp sum ok]  { SNMPv1 { GetResponse(97) R=-587621008  interfaces.ifTable.ifEntry.ifInOctets.2=3569482847 interfaces.ifTable.ifEntry.ifOutOctets.2=3147555520 system.sysUpTime.0=516370782 system.sysName.0="homepna1"} }  (ttl 30, id 32507, len 140)

# mrtg mrtg.conf
SNMP Error:
no response received
SNMPv1_Session (remote host: "homepna1" [10.0.0.2].161)
                  community: "public"
                 request ID: -587621008
                PDU bufsize: 8000 bytes
                    timeout: 2s
                    retries: 5
                    backoff: 1)
 at /usr/pkg/lib/perl5/site_perl/5.6.1/SNMP_util.pm line 458
SNMPGET Problem for ifInOctets.2 ifOutOctets.2 sysUptime sysName on public at homepna1:
 at /usr/pkg/bin/mrtg line 1621
WARNING: skipping because at least the query for ifInOctets.2 on  homepna1 did not succeed
ERROR: Target[homepna1_2][_IN_] ' $$target[0]{$mode} ' did not eval into defined data
ERROR: Target[homepna1_2][_OUT_] ' $$target[0]{$mode} ' did not eval into defined data
WARNING: Skipping Update of homepna1_2, inlast is not defined
WARNING: Skipping Update of homepna1_2, outlast is not defined

# snmpget -v 1 -c public homepna1 ifInOctets.2 ifOutOctets.2 sysUptime sysName
IF-MIB::ifInOctets.2 = Counter32: 3574509137
IF-MIB::ifOutOctets.2 = Counter32: 3148902956
SNMPv2-MIB::sysUpTime = Timeticks: (516561531) 59 days, 18:53:35.31
SNMPv2-MIB::sysName = STRING: homepna1

# cat mrtg.conf
WorkDir:                /home/www/logs/mrtg
IconDir:                /mrtg/
Refresh:                300
Options[_]:             growright, bits

Target[homepna1_2]:     2:public at homepna1:
MaxBytes[homepna1_2]:   12500000
Title[homepna1_2]:      HomePNA 1/ETH
PageTop[homepna1_2]:    <h1>HomePNA 1/ETH</h1>
  <table>
    <tr>
      <td><strong>Switch:</strong></td><td>1</td>
      <td><strong>Port:</strong></td><td>ETH</td>
      <td><strong>Speed:</strong></td><td>100 Mbit/s</td>
    </tr>
  </table>

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list