Subject: MRTG problems
To: None <tech-pkg@netbsd.org>
From: Martti Kuparinen <martti.kuparinen@iki.fi>
List: tech-pkg
Date: 10/28/2002 09:25:08
Hi!

I'm having _sometimes_ (not all the time) problems with MRTG 2.9.25.
My old 2.9.17 works fine without any problems. This is on NetBSD 1.6
if that matters.

=========================================================================
# mrtg mrtg.conf
SNMP Error:
no response received
SNMPv1_Session (remote host: "homepna2" [10.0.0.3].161)
                  community: "public"
                 request ID: -1349231089
                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.1 ifOutOctets.1 sysUptime sysName on public@homepna2:
 at /usr/pkg/bin/mrtg line 1620
WARNING: skipping because at least the query for ifInOctets.1 on  homepna2 did not succeed
ERROR: Target[homepna2_1][_IN_] ' $$target[1]{$mode} ' did not eval into defined data
ERROR: Target[homepna2_1][_OUT_] ' $$target[1]{$mode} ' did not eval into defined data
WARNING: Skipping Update of homepna2_1, inlast is not defined
WARNING: Skipping Update of homepna2_1, outlast is not defined
=========================================================================

However, tcpdump show traffic between my server and the switch (4 similar
sequences after the following two packets, i.e. 5 retries) so it must be
something else.

=========================================================================
13:39:57.066322 10.0.0.1.60414 > 10.0.0.3.161:  GetRequest(39)  .1.3.6.1.2.1.2.2
.1.10.1 .1.3.6.1.2.1[|snmp]
0x0000   4500 0075 08ed 0000 4011 5d88 0a00 0001        E..u....@.].....
0x0010   0a00 0003 ebfe 00a1 0061 cb46 3057 0201        .........a.F0W..
0x0020   0004 0670 7562 6c69 63a0 4a02 04af 945e        ...public.J....^
0x0030   0f02 0100 0201 0030 3c30 0e06 0a2b 0601        .......0<0...+..
0x0040   0201 0202 010a 0105 0030 0e06 0a2b 0601        .........0...+..
0x0050   0201                                           ..
13:39:57.070068 10.0.0.3.161 > 10.0.0.1.60414:  GetResponse(39)  .1.3.6.1.2.1.2.
2.1.10.1=2278590221 [|snmp]
0x0000   4500 008b 6088 0000 1e11 27d7 0a00 0003        E...`.....'.....
0x0010   0a00 0001 00a1 ebfe 0077 e162 306d 0201        .........w.b0m..
0x0020   0004 0670 7562 6c69 63a2 6002 0500 af94        ...public.`.....
0x0030   5e0f 0201 0002 0100 3051 3013 060a 2b06        ^.......0Q0...+.
0x0040   0102 0102 0201 0a01 4105 0087 d087 0d30        ........A......0
0x0050   1206                                           ..
=========================================================================

Here's my config file:

=========================================================================
WorkDir:                /home/www/logs/mrtg
IconDir:                /mrtg/
Refresh:                300
Options[_]:             growright, bits

Target[homepna2_1]:     1:public@homepna2:
MaxBytes[homepna2_1]:   12500000
Title[homepna2_1]:      HomePNA 2/ETH
PageTop[homepna2_1]:    <h1>HomePNA 2/ETH</h1>
  <table>
    <tr>
      <td><strong>Switch:</strong></td><td>2</td>
      <td><strong>Port:</strong></td><td>ETH</td>
      <td><strong>Speed:</strong></td><td>100 Mbit/s</td>
    </tr>
  </table>
=========================================================================

All ideas are welcome...

Martti

---
Martti Kuparinen <martti.kuparinen@iki.fi>      NetBSD - No media hype
http://www.iki.fi/kuparine/                     http://www.netbsd.org/