REST API call to get alarms with the Dynamic Alarm Title attribute (0x12b4c) fails with NullPointer exception
search cancel

REST API call to get alarms with the Dynamic Alarm Title attribute (0x12b4c) fails with NullPointer exception

book

Article ID: 280112

calendar_today

Updated On:

Products

Network Observability Spectrum

Issue/Introduction

Running the following REST alarms query is generating a NullPointerException and preventing alarms from going to splunk. 

https://ocserver/spectrum/restful/alarms?attr=0x1006e&attr=0x12d7f&attr=0x10000&attr=0x10009&attr=0x12b4c&attr=0x11f4e&attr=0x1321a&attr=0x11f9c&attr=0x11f56

Environment

DX NetOps Spectrum 23.3.6

Cause

This is occurring b/c the DynamicAlarmTitle attribute had a value of "N/A".  I believe that was breaking the XML response and causing the NULL Pointer Exception.

Resolution

Clearing the existing alarms with a value of "N/A" for the alarm title and adding a alarm title to the event in the Event Configuration Editor for the event missing an alarm title will resolve the issue.