Unomaly supports receiving SNMP traps from your infrastructure. Because Management Information Base (MIB) files are not bundled with the installation, Unomaly will only show the numeric Object Identifiers (OIDs) for keys and values included in the received SNMP trap.

# untranslated OID
SNMPv2-SMI::enterprises.25461.2.1.3.1.3 = "001606002251"

You can add your own MIB files to Unomaly, enabling translation of the numeric OID keys and values to their corresponding textual description.

# translated OID
PAN-TRAPS::panSerial = "001606002251"

How to add MIB files

  1. SSH to Unomaly and log in to the shell.

  2. Create temporary directory on the Unomaly server, for example:

    mkdir /tmp/mibs
    
  3. Copy the unpacked MIB files to the temporary directory you created. (You can use SCP or WinSCP.)

  4. Create the MIB directory.

    sudo mkdir /usr/share/snmp/mibs/
    
  5. Copy the MIB files to the proper location.

    sudo cp /tmp/mibs/* /usr/share/snmp/mibs/
    
  6. Restart the SNMP trap daemon.

    sudo service snmptrapd restart
    

Unomaly will no log and display the full information provided in the received traps.

MIB dependencies

Many vendors provide MIBs that you can load into Unomaly to understand their traps, you might run into dependencies on other MIBs. This will generate error messages in the /var/log/error log in Unomaly. Missing MIBs can sometimes be found online depending on their licensing situation.

# the MIB PAN-TRAPS needs SNMPv2-TC to load correctly.
Sep  1 07:09:24 unomaly snmptrapd[3905]: Cannot find module (SNMPv2-TC): At line 18 in /usr/share/mibs/netsnmp/PAN-TRAPS.my