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.

Sean

On 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
http://www.debianhelp.co.uk/mrtg.htm and
http://jitamitra.blogspot.com/2009/02/snmp-and-mrtg-on-debian.html

...but the part that doesn't work is
root@sheeva:/etc/snmp# indexmaker /etc/mrtg.cfg --columns=1 --output /var/www/mrtg/index.html
Use 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::ipAdEntIfIndex
MIB search path: /root/.snmp/mibs:/usr/share/mibs/site:/usr/share/snmp/mibs:/usr/share/mibs/iana:/usr/share/mibs/ietf:/usr/share/mibs/netsnmp
Cannot find module (IP-MIB): At line 0 in (none)
IP-MIB::ipAdEntIfIndex: Unknown Object Identifier
root@sheeva:/etc/snmp# snmpwalk -v 1 -c public localhost system
system: 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/