Sigh. Solution (keep in mind this is on a SheevaPlug running Debian):
Do you have any mibs installed? Usually in /usr/share/snmp/mibs. It sounds like your system can't find the MIB files, or aren't using them.
The mib files are the rules that translate the name, such as system or IP-MIB::ipAdEntIfIndex, to an OID like .1.3.1.6.1.... http://mibdepot.com is a great place to find mibs, but you should be able to resolve system and stuff under IP-MIB without any vendor specific mibs.
In your snmpwalk command, try adding -m ALL to load all mibs, or passing in a directory with -M. It might be that you need to install the files. Stracing the process (strace -e trace=file indexmaker ....) might give you an idea of where it's looking for the mibs. Look for a file called IP-MIB.txt, which is where ipAdEntIfIndex is defined.
All that said, unless you're going to graph a couple of items and never plan to graph anything more, stay away from MRTG. Cacti is a lot friendlier.
SeanOn Thu, May 12, 2011 at 9:05 PM, Kevin McGregor <kevin.a.mcgregor@gmail.com> wrote:
_______________________________________________I'm trying to set up SNMP and MRTG on my SheevaPlug computer, and I can't quite get it to work. I've followed the guides like...but the part that doesn't work isroot@sheeva:/etc/snmp# indexmaker /etc/mrtg.cfg --columns=1 --output /var/www/mrtg/index.htmlUse of uninitialized value $first in hash element at /usr/bin/indexmaker line 353.root@sheeva:/etc/snmp# snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndexMIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmpCannot find module (IP-MIB): At line 0 in (none)IP-MIB::ipAdEntIfIndex: Unknown Object Identifierroot@sheeva:/etc/snmp# snmpwalk -v 1 -c public localhost systemsystem: Unknown Object Identifier (Sub-id not found: (top) -> system)Any suggestions?Kevin
Roundtable mailing list
Roundtable@muug.mb.ca
http://www.muug.mb.ca/mailman/listinfo/roundtable
--
Sean Walberg <sean@ertw.com> http://ertw.com/
_______________________________________________
Roundtable mailing list
Roundtable@muug.mb.ca
http://www.muug.mb.ca/mailman/listinfo/roundtable