Where are the MIB files ?
I’m in the middle of upgrading old servers but it was just only yesterday that I found Ubuntu 12.04 didn’t install the MIB files. Even if you install the SNMP applications. It was really strange to launch tkmib and just see a couple of nodes.
The explanation is simple. Just check the preamble of /etc/snmp/snmp.conf
# # As the snmp packages come without MIB files due to license reasons, loading # of MIBs is disabled by default. If you added the MIBs you can reenable # loaging them by commenting out the following line. mibs : |
Sure, but how can I install them ?
Fortunately there is a package to deal with that.
$ sudo apt-get install snmp-mibs-downloader |
It will download the IETF MIB files and install them under the usual /usr/share/mibs/
If for any reason you don’t see it happen force it with
$ sudo download-mibs |
You can repeat this command later to update any new MIB file.
Let’s rock’n’roll
Well, almost. At this time your tools still won’t work correctly. Just remember the text on /etc/snmp/snmp.conf. You have to comment out the mibs : line! Now everything is by the book. Enjoy!
Thanks!
Congrats!!!
Great tutorial.
Helped me a lot! :-)
But what the heck is ‘loaging’ ?
I copy/pasted “as is” from the file. The typo is there on the original distributed file. Check it. :-)
The typo was corrected in 14.04
This was a big help, thanks!
Thanks…!!!
Thanks, it was very helpfull
Ubuntu users must have multiverse added to /etc/apt/sources.list in order to download this pkg.
I’ve just checked a new installed 12.04 and /etc/apt/sources.list already has multiverse by default
Tanks. I was hitting my head to the wall long time because of this.
thanks
Perfect. Thank you.