I'm attempting to cross-compile mrtg for openwrt on a mipsbe processor. So far after two days of hacking around with cross compiling libraries and linking them properly, I finally got mrtg and its pre-requisites to compile. I also got all the required perl modules on the openwrt box. I'm finally to the point where I can do cfgmaker and it is timing out. I added lots of extra print statements in some of the mrtg .pm files in a vain attempt to debug, but so far I can't figure this out:
r...@openwrt:/usr/share/mrtg/bin# ./cfgmaker --global 'WorkDir: /www/mrtg' \ > --snmp-options=":::::1" \ > --output /usr/share/mrtg/cfg/mrtg.cfg \ > [email protected] SNMP_util.pm line 628 SNMP_util::Version=1 getnext_request_response request_response_5 req=0'public? 0 0 + response_tag=130 oidsi errorp=1 wait_for_response wait_for_response wait_for_response wait_for_response wait_for_response SNMP Error: no response received 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 [email protected]:::::1:v4only at ./cfgmaker line 950 WARNING: Skipping [email protected]:::::1 as no info could be retrieved I installed snmp tools and snmpwalk works just fine (doesn't time out): r...@openwrt:/usr/share/mrtg/lib/mrtg2# snmpwalk -c public -v 1 10.255.255.253 1.3.6.1.2.1.1 Cannot find module (SNMP-VIEW-BASED-ACM-MIB): At line 0 in (none) Cannot find module (SNMP-COMMUNITY-MIB): At line 0 in (none) Cannot find module (SNMP-FRAMEWORK-MIB): At line 0 in (none) Cannot find module (SNMP-MPD-MIB): At line 0 in (none) Cannot find module (SNMP-USER-BASED-SM-MIB): At line 0 in (none) Cannot find module (TUNNEL-MIB): At line 0 in (none) Cannot find module (IPV6-FLOW-LABEL-MIB): At line 0 in (none) Cannot find module (UCD-DLMOD-MIB): At line 0 in (none) Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find module (TCP-MIB): At line 0 in (none) Cannot find module (UDP-MIB): At line 0 in (none) Cannot find module (HOST-RESOURCES-MIB): At line 0 in (none) Cannot find module (SNMPv2-MIB): At line 0 in (none) Cannot find module (SNMPv2-SMI): At line 0 in (none) Cannot find module (NOTIFICATION-LOG-MIB): At line 0 in (none) Cannot find module (DISMAN-EVENT-MIB): At line 0 in (none) Cannot find module (DISMAN-SCHEDULE-MIB): At line 0 in (none) 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 Packet sniffing shows that requests are coming across on udp port 161 as well, but the perl modules don't seem to be handling the responses at all...just reporting a timeout. I've been googling all over the place on different boards and on this mailing list, but no posts quite match what I'm attempting to do. Ideas anybody? Many thanks, Brandon _______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
