Skip to main content

Oid 1 SNMP Traps

Plugin: go.d.plugin Module: snmp_traps

Overview

Receive, decode, and store SNMP traps and INFORMs from Oid 1 devices with Netdata. The bundled Oid 1 trap profile decodes 216 trap definitions across 47 MIBs into structured journal events with named, typed varbinds — searchable and filterable in the Logs tab.

Netdata's SNMP trap listener receives traps on UDP/162, matches them to the Oid 1 enterprise OID space, and decodes the varbinds using the bundled Oid 1 trap profile. No per-trap configuration.

This integration is supported on all platforms.

This integration supports multiple instances configured side-by-side.

Default Behavior

Auto-Detection

Traps from Oid 1 devices are decoded automatically once the device is pointed at the Agent's trap listener.

Limits

The default configuration for this integration does not impose any limits.

Performance Impact

The default configuration for this integration is not expected to impose a significant performance impact on the system.

Setup

You can configure the snmp_traps collector in two ways:

MethodBest forHow to
UIFast setup without editing filesGo to Nodes → Configure this node → Collectors → Jobs, search for snmp_traps, then click + to add a job.
FileIf you prefer configuring via file, or need to automate deployments (e.g., with Ansible)Edit go.d/snmp.conf and add a job.
important

UI configuration requires paid Netdata Cloud plan.

Prerequisites

SNMP access

SNMP must be enabled on the device and reachable from the Netdata Agent acting as the site's SNMP hub.

Configuration

Options

Configure the SNMP collector with the device hostname and SNMP credentials. See the SNMP collector reference for all options.

via UI

Configure the snmp_traps collector from the Netdata web interface:

  1. Go to Nodes.
  2. Select the node where you want the snmp_traps data-collection job to run and click the (Configure this node). That node will run the data collection.
  3. The Collectors → Jobs view opens by default.
  4. In the Search box, type snmp_traps (or scroll the list) to locate the snmp_traps collector.
  5. Click the + next to the snmp_traps collector to add a new job.
  6. Fill in the job fields, then click Test to verify the configuration and Submit to save.
    • Test runs the job with the provided settings and shows whether data can be collected.
    • If it fails, an error message appears with details (for example, connection refused, timeout, or command execution errors), so you can adjust and retest.

via File

The configuration file name for this integration is go.d/snmp.conf.

The file format is YAML. Generally, the structure is:

update_every: 1
autodetection_retry: 0
jobs:
- name: some_name1
- name: some_name2

You can edit the configuration file using the edit-config script from the Netdata config directory.

cd /etc/netdata 2>/dev/null || cd /opt/netdata/etc/netdata
sudo ./edit-config go.d/snmp.conf
Examples

There are no configuration examples.

Alerts

There are no alerts configured by default for this integration.

Metrics

Netdata decodes 216 trap definitions from Oid 1 across 47 MIBs into structured journal events. A trap is decoded only if the device actually sends it; inclusion here means the profile can decode it.

By severity: alert 5 · crit 6 · err 3 · warning 121 · notice 75 · info 6

By category: state_change 126 · config_change 12 · security 35 · auth 1 · mobility 2 · diagnostic 39 · unknown 1

Coverage by MIB

47 MIBs decoded — show per-MIB trap counts
MIBTrap definitions
DC-ISIS-MIB18
ISIS-D13-MIB17
IB-SM-MIB15
IPSEC-FLOW-MONITOR-MIB15
SLAPM-MIB12
IB-SMA-MIB10
PGM-MIB9
DC-BGP-MIB8
IPSEC-SA-MON-MIB8
IPSEC-MIB7
MPLS-LSR-MIB6
FCMGMT-MIB5
IBSWITCH-MIB5
MPLS-VPN-MIB5
OPS-MIB5
IPPM-MIB4
IPSEC-TUN-MON-MIB4
MPLS-CEM-MIB4
SMF-MIB4
DC-EVPN-MIB3
DC-RTM-MIB3
H320ENTIRY-MIB3
IEEE802dot11-MIB3
MPLS-TE-MIB3
SCSPATMARP-MIB3
VPLS-MIB3
DC-PIM-BSR-MIB2
DC-PIM-MIB2
DRAFT-MSDP-MIB2
DVMRP-MIB2
DVMRP-STD-MIB2
IEEE8023-LAG-MIB2
IPPM-CONTROL-MIB2
MPLS-FRR-MIB2
MSDP-MIB2
PCE-PCEP-DRAFT-MIB2
PW-CEP-MIB2
SEE-MIB2
SNA-LLC-MIB2
BULK-DATA-MIB1
FRF16-MFR-MIB-EXP1
H221-MIB1
MPLS-VPN-MIB-DRAFT-051
PIM-MIB1
PIMG-MIB1
SCSP-MIB1
XGCP-MIB1

Sample decoded traps

  • DC-RTM-MIB::rtmOperStateChange
  • DC-RTM-MIB::rtmStaticRouteChange
  • DC-RTM-MIB::rtmPathActivityChange
  • DC-ISIS-MIB::isisDatabaseOverload
  • DC-ISIS-MIB::isisManualAddressDrops

Do you have any feedback for this page? If so, you can open a new issue on our netdata/learn repository.