SNMP Trapd

Most recent version: v0.0.1

See the changelog of this Listener type here.

Overview

Onum supports integration with SNMP.

SNMP (Simple Network Management Protocol) is a standard protocol for monitoring and managing network devices. It operates on a client-server model where:

  • SNMP Agents (devices) send traps (asynchronous notifications) to SNMP Managers.

  • Traps contain information about events like system failures, security alerts, or performance issues.

  • OIDs (Object Identifiers) uniquely identify each piece of information in the trap.

The SNMP Trapd Listener is a powerful and intelligent Listener that receives SNMP traps from network devices, parses them using embedded MIB (Management Information Base) files, and converts them into structured Onum events. It supports all major SNMP versions (v1, v2c, v3) with comprehensive authentication and privacy options.

Select SNMP Trapd from the list of Listener types and click Configuration to start.

What are MIBs?

MIBs (Management Information Bases) are hierarchical databases that define:

  • OID structure and relationships

  • Data types for each OID

  • Human-readable names for OIDs

  • Units and ranges for values

Example OID: 1.3.6.1.2.1.1.1.0sysDescr (System Description)

Architecture & MIB Strategy

The SNMP Trapd Listener includes essential MIBs for comprehensive SNMP support:

MIB
Purpose
Dependencies

SNMPv2-SMI

Base SMI definitions

None

SNMPv2-TC

Base TC definitions

SNMPv2-SMI

SNMPv2-MIB

Core SNMP MIB

SNMPv2-SMI, SNMPv2-TC

IF-MIB

Interface monitoring

SNMPv2-SMI

IP-MIB

IP protocol

SNMPv2-SMI, IF-MIB

TCP-MIB

TCP protocol

SNMPv2-SMI, IP-MIB

UDP-MIB

UDP protocol

SNMPv2-SMI, IP-MIB

HOST-RESOURCES-MIB

Host resources

SNMPv2-SMI

ENTITY-MIB

Entity monitoring

SNMPv2-SMI

Listener configuration

Now you need to specify how and where to collect the data and how to establish your connection.

Metadata

Enter the basic information for the new Listener.

Parameter
Description

Name*

Enter a name for the new Listener.

Description

Optionally, enter a description for the Listener.

Tags

Add tags to easily identify your Listener. Hit the Enter key after you define each tag.

Configuration

Now, add the configuration to establish the connection.

Parameter
Description

Version*

Select the required SNMP protocol version between v1, v2c, and v3.

For v1 and v2c, you'll be prompted to enter the required Community*. The community string acts like a simple password to authenticate communication between the SNMP manager and the SNMP agent.

For v3, you must choose a security level between:

  • noAuthNoPriv - Choose this option if no authentication is required:

    • Enter your username in the User* field that appears.

  • authNoPriv - Choose this option to set basic authentication:

    • Enter your username in the User* field

    • Select the required authentication protocol (MD5 or SHA). Then, choose your Authentication Password* from your Secrets or click New secret to create a new one.

  • authPriv - Choose this option to set authentication + encryption:

    • Enter your username in the User* field.

    • Select the required authentication protocol (MD5 or SHA). Then, choose your Authentication Password* from your Secrets or click New secret to create a new one.

    • Select the required privacy protocol (DES or AES). Then, choose your Privacy Password* from your Secrets or click New secret to create a new one.

Port*

Enter the UDP port to listen for traps.

Click Create labels to move on to the next step and define the required Labels if needed.

Output data

The listener converts SNMP traps into structured Onum events with the following generated fields:

Field
Description

_raw

Complete trap data as JSON

sourceIp

Source IP address

sourcePort

Source port number

version

SNMP version used

mibName

MIB name if parsing is successful, none otherwise

This is an output event example:

{
  "_raw": "{\"agent_addr\":\"10.123.54.210\",\"generic_trap\":6,\"specific_trap\":1,\"enterprise\":\"1.3.6.1.4.1.18494.2\",\"variable_bindings\":{\"1.3.6.1.4.1.18494.2.1.1\":\"ACCESS\"}}",
  "sourceIp": "10.123.54.210",
  "sourcePort": 12345,
  "version": "v1",
  "mibName": "SWIFT-MIB"
}

Last updated

Was this helpful?