'

add snmp mibs to CentOS.

November 10th, 2012 by Andrea Matesi 27349 Views

If you use CentOS with some SNMP NMS, chance is you want to monitor some specific hardware that:

  1. Is not supported out-of-the-box from your NMS.
  2. It is supported by your hardware manufacturer.

The process of adding a new MIB is very easy.

You have to check first if the manufacturer supports SNMP, then see if it publishes and releases (usually through their site), the specific functions supported by their hardware (i.e.: an UPS with specific snmp features like APC).

  • Go to your product manufacturer and download the product's MIB.
  • Rename the mib to MIB-NAME.txt
  • Copy the MIB inside /usr/share/snmp/mibs/
  • Edit /usr/share/snmp/snmp.conf
  • Input the following statement:

mibfile /usr/share/snmp/mibs/PowerNet-MIB.txt

Posted in LINUX, System Administration | 3 Comments »

3 responses to “add snmp mibs to CentOS.”

  1. Mehul MehtaNo Gravatar says:

    I tried the steps but is not working.

    Undefined identifier: f10Mgmt near line 27 of /usr/share/snmp/mibs/f10-ss-chassis.txt
    chStackUnitUpTime.1: Unknown Object Identifier (Sub-id not found: (top) -> chStackUnitUpTime)

  2. Hi Mehul,

    Add F10-SMI.mib first then try again.

  3. ChrisNo Gravatar says:

    Thank you for the information. Strange though on centOS 6.5 there does not seem to be a snmp.conf file. Thanks for any help.