'

add snmp mibs to CentOS.

November 10th, 2012 by Andrea Matesi 28521 Views
CentOS-logo

CentOS-logo

If you use CentOS with some SNMP NMS (such as Zenoss), chances are 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'd 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 would have some specific features regarding Power usage, etc.).

  • 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

Senior Professional Network and Computer Systems Engineer during work hours and father when home.

Andrea strives to deliver outstanding customer service and heaps of love towards his family.

In this Ad-sponsored space, Andrea shares his quest for "ultimate" IT knowledge, meticulously brought to you in an easy to read format.

add snmp mibs to CentOS.
5 (100%) 1 vote

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.