# TrapOID

Defines the notification OID used for SNMPv2 traps.

This parameter applies to omsnmp: SNMP Trap Output Module.

Name:

  TrapOID

Scope:

  module

Type:

  string

Default:

  module=1.3.6.1.4.1.19406.1.2.1

Required?:

  no

Introduced:

  at least 7.3.0, possibly earlier

## Description

The default value means “ADISCON-MONITORWARE-MIB::syslogtrap”.

This configuration parameter is used for SNMPv2 only. This is the OID which defines the trap-type, or notification-type rsyslog uses to send the trap. In order to decode this OID, you will need to have the ADISCON-MONITORWARE-MIB and ADISCON-MIB mibs installed on the receiver side. Downloads of these mib files can be found here:

https://www.adiscon.org/download/ADISCON-MIB.txt

https://www.adiscon.org/download/ADISCON-MONITORWARE-MIB.txt Thanks to the net-snmp mailinglist for the help and the recommendations ;).

## Module usage

    action(type="omsnmp" trapOID="1.3.6.1.4.1.19406.1.2.1")

### Legacy names (for reference)

Historic names/directives for compatibility. Do not use in new configs.

- $actionsnmptrapoid — maps to TrapOID (status: legacy)

## See also

See also omsnmp: SNMP Trap Output Module.

Support: rsyslog Assistant | GitHub Discussions | GitHub Issues: rsyslog source project

Contributing: Source & docs: rsyslog source project

© 2008–2025 Rainer Gerhards and others. Licensed under the Apache License 2.0.