NPE while compiling a MIB

Description

While trying to compile the attached MIB, an error is thrown as shown on the screenshot.

Attached karaf.log with the full stack trace.

I'm not sure if there is an error on the MIB as I was able to compile it using a tool I wrote based on Mibble: https://github.com/agalue/OpenNMS-Mib2Conf. I'm attaching the result I got with my tool.

Acceptance / Success Criteria

None

Attachments

4

Lucidchart Diagrams

Activity

Show:

Christian Pape January 20, 2020 at 9:02 AM

Alejandro Galue January 10, 2020 at 8:54 PM

From the error messages, jsmiparser, the third-party library used to parse MIBs in OpenNMS is complaining saying that STATUS mandatory is invalid for a NOTIFICATION-TYPE. This is true according to RFC-2578 and RFC-2579, which throws an unexpected exception somewhere that is not being caught, leading to an NPE from a place where it is not expected.

In other words, the MIB is malformed, as mandatory seems to only apply to TRAP-TYPE for v1 definitions but not for NOTIFICATION_TYPE (based on RFC-1155), but the UI should properly handle these kinds of errors, despite potential issues within the jsmiparser library.

Duplicate

Details

Assignee

Reporter

Components

Affects versions

Priority

PagerDuty

Created January 10, 2020 at 6:43 PM
Updated January 22, 2020 at 12:45 PM
Resolved January 22, 2020 at 12:45 PM