SNMP MIB Compiler

Management Information Base (MIB) files are text files written in Abstract Syntax Notation. They describe Simple Network Management Protocol (SNMP) elements for specific devices. By default, Horizon includes an extensive list of MIB definitions from a number of vendors. You will only need to import MIB files for unformatted events as part of configuring SNMP traps and collection.

You can parse SNMP MIB definitions and create Horizon event definitions from any TRAP-TYPE or NOTIFICATION-TYPE macros that they contain through the UI. You can also generate data collection definitions from OBJECT-TYPE symbols defined in a MIB file.

You can use the mib2opennms command line utility to help create event definitions from MIB definitions. Using the UI editor achieves similar results to using mib2events.

We do not recommend using mib2opennms, as it produces more bus errors than event definitions.

Import MIB and create event definitions

To import a MIB file and create event definitions, follow these steps:

  1. Save the vendor MIB file to a location available to your local workstation. The MIB file does not need to be accessible by the server.

  2. In Horizon, click the gears icon at the top-right of the page.

  3. Under Additional Tools, select SNMP MIB Compiler.

  4. Click Upload MIB.

  5. Select the MIB file and click Open.

  6. Right-click the file and choose Compile MIB.

  7. If the log area displays an error (usually a missing dependency), you must correct the error to compile the MIB file successfully.

    • Determine the type of error (dependency, file syntax).

    • Search the internet for the name of the missing content, save it as a text file, upload it, and compile again.

      OR

    • Right-click the file and choose Edit MIB.

    • Edit the file to address the error, click Save, and compile it again.

  8. Continue to edit the file until it compiles successfully.

  9. Right-click the MIB from which you want to generate an event and choose Generate Events or Generate Data Collection, as appropriate.

  10. If desired, modify the name of the UEI base with the vendor name for easier troubleshooting and click Configure.

  11. Click Save Events File to save them to the event.conf file.

If you were getting unformatted events, they will now be formatted.