<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=us-ascii" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Steve Shipway wrote:
<blockquote
 cite="mid:6B587E8C999646469B54486AF21958460CE6572E62@UXCHANGE7-1.UoA.auckland.ac.nz"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">I'm attempting to cross-compile mrtg for openwrt on a mipsbe processor.
    </pre>
  </blockquote>
  <pre wrap=""><!---->...
  </pre>
  <blockquote type="cite">
    <pre wrap="">SNMPv1_Session (remote host: "10.255.255.253" [10.255.255.253].161)
community: "public"
request ID: -552632565
PDU bufsize: 8000 bytes
timeout: 2s
retries: 5
backoff: 1)
at /usr/share/mrtg/bin/../lib/mrtg2/SNMP_util.pm line 631
SNMPWALK Problem for 1.3.6.1.2.1.1 on <a class="moz-txt-link-abbreviated" href="mailto:public@10.255.255.253:::::1:v4only">public@10.255.255.253:::::1:v4only</a>
at ./cfgmaker line 950
    </pre>
  </blockquote>
  <pre wrap=""><!---->...
  </pre>
  <blockquote type="cite">
    <pre wrap="">root@OpenWrt:/usr/share/mrtg/lib/mrtg2# snmpwalk -c public -v 1
10.255.255.253 1.3.6.1.2.1.1
    </pre>
  </blockquote>
  <pre wrap=""><!---->...
  </pre>
  <blockquote type="cite">
    <pre wrap="">iso.3.6.1.2.1.1.1.0 = STRING: "router"
iso.3.6.1.2.1.1.2.0 = OID: iso.3.6.1.4.1.14988.1
iso.3.6.1.2.1.1.3.0 = Timeticks: (46821500) 5 days, 10:03:35.00
iso.3.6.1.2.1.1.4.0 = STRING: "test-box"
iso.3.6.1.2.1.1.5.0 = STRING: "wrtName"
iso.3.6.1.2.1.1.6.0 = STRING: "here"
iso.3.6.1.2.1.1.7.0 = INTEGER: 78
    </pre>
  </blockquote>
  <pre wrap=""><!---->
Sounds as if the problem lies in the SNMP_util module, which is part of the MRTG installation.  I have no familiarity with your OS but it may be that this module is making some assumptions about SNMP - maybe there are permissions issues on who can listen the UDP responses, for example.

Since snmpwalk works we know the issue is not the agent, but snmpwalk uses different code to SNMP_util.pm.

I'd suggest you direct your investigations to this module, maybe make a small Perl script to use it to make a single SNMP lookup and see if that works?

Steve

  </pre>
</blockquote>
Thanks for the responses.&nbsp; I took the easy way out and decided to use a
different monitoring tool.&nbsp; Found that rrd was a pre-compiled package
for my openwrt install.&nbsp; Gave that a try and got it working.<br>
<br>
Unfortunately, this project is short-fused and I don't have much time
to troubleshoot the mrtg install...even though I got this far :)&nbsp; I
agree, the problem was probably in SNMP_util.pm.&nbsp; I didn't get too far
in examining that or the packet dumps that I captured.&nbsp; I'm also
wondering if running the perl code on a big endian machine vs a little
endian machine made a difference?<br>
<br>
Thanks again<br>
Brandon<br>
<br>
<br>
<br>
<br>
</body>
</html>