Add the full trap oid for v2 snmp event

Description

In the case of SNMPv2 traps, the replacement token %id% currently shows only the enterprise id. For example,sending a ciscoIfExtensionMIBNotifications will yield

 

 

 
Log Message

Notice that the sub-id 0 is disregarded by OpenNMS. One of our customer's use case is to parse the Log Message field of an event for the full trap oid instead where full trap oid is enterprise id + sub-id + specific id. Many vendors but not all adopt the convention where sub-id = 0. For examples,

Fortigate - https://oidref.com/1.3.6.1.4.1.12356.101.2.0.301

F5 - http://oidref.com/1.3.6.1.4.1.3375.2.4.0.12

Cisco - http://oidref.com/1.3.6.1.4.1.9.9.276.0.1

Since OpenNMS %id% token is only displaying the enterprise id and there's no other way to display the full trap id without manually hardcoding most of the event files, customer is not able to make use of parsing the logmsg field as parsing the full trap id is required. It would be helpful for customer if one additional token can be added to distinguish between the more generic %id% token and the more SNMPv2 specific full trap oid token.

Acceptance / Success Criteria

None

Attachments

1

Lucidchart Diagrams

Activity

Show:

Chandra Gorantla October 26, 2021 at 2:18 PM
Edited

. Since this is a feature, we intentionally not back-porting the changes to foundation-2021 

I reverted the PR that got merged in foundation-2019.  

This currently exist only  release-28 and beyond. 

Please check with  to know what build customer is getting. We can provide what is necessary.

Chandra Gorantla October 26, 2021 at 1:47 PM

Chandra Gorantla September 7, 2021 at 2:29 PM
Edited

PR on release-28 is still valid. Going to resolve this for now. We can open another issue if we need it back on foundation-2019

Benjamin Reed September 7, 2021 at 2:18 PM

reopening since this got reverted for now

Chandra Gorantla August 31, 2021 at 4:50 PM

Check attached screenshot. %trapoid% replaced with full trapoid.

Fixed

Details

Assignee

Reporter

HB Grooming Date

HB Backlog Status

Components

Sprint

Fix versions

Affects versions

Priority

PagerDuty

Created June 29, 2021 at 3:10 PM
Updated October 26, 2021 at 2:20 PM
Resolved September 7, 2021 at 2:29 PM