[mrtg] SNMPWALK Problem for 220.127.116.11.2.1.1 on cross-compiled mrtg (openwrt mipsbe)
s.shipway at auckland.ac.nz
Thu Jan 21 21:37:20 CET 2010
> I'm attempting to cross-compile mrtg for openwrt on a mipsbe processor.
> 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 18.104.22.168.2.1.1 on public at 10.255.255.253:::::1:v4only
> at ./cfgmaker line 950
> root at OpenWrt:/usr/share/mrtg/lib/mrtg2# snmpwalk -c public -v 1
> 10.255.255.253 22.214.171.124.2.1.1
> iso.126.96.36.199.188.8.131.52 = STRING: "router"
> iso.184.108.40.206.220.127.116.11 = OID: iso.18.104.22.168.1.14988.1
> iso.22.214.171.124.126.96.36.199 = Timeticks: (46821500) 5 days, 10:03:35.00
> iso.188.8.131.52.184.108.40.206 = STRING: "test-box"
> iso.220.127.116.11.18.104.22.168 = STRING: "wrtName"
> iso.22.214.171.124.126.96.36.199 = STRING: "here"
> iso.188.8.131.52.184.108.40.206 = INTEGER: 78
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?
More information about the mrtg