Update: still valid for Ubuntu 20.04 LTS !!!
Where are the MIB files ?
I’m in the middle of upgrading old servers and I found Ubuntu starting on 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!