12

Installing SNMP MIB files in Linux Ubuntu 12.04 LTS

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!

 

How to get the original IP address in Apache2 behind Nginx

12 Comments

    • I copy/pasted “as is” from the file. The typo is there on the original distributed file. Check it. :-)

  1. 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

      ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
      ## team, and may not be under a free licence. Please satisfy yourself as to 
      ## your rights to use the software. Also, please note that software in 
      ## multiverse WILL NOT receive any review or updates from the Ubuntu
      ## security team.
      deb http://archive.ubuntu.com/ubuntu/ precise multiverse
      deb-src http://archive.ubuntu.com/ubuntu/ precise multiverse
      deb http://archive.ubuntu.com/ubuntu/ precise-updates multiverse
      deb-src http://archive.ubuntu.com/ubuntu/ precise-updates multiverse

Leave a Reply