Is it possible to send alarms with dev_id and met_id using Lua NSA SDK?
search cancel

Is it possible to send alarms with dev_id and met_id using Lua NSA SDK?

book

Article ID: 278959

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM)

Issue/Introduction

I would like to send some alarms from a custom script that is developed using the Lua SDK  (NSA) but when I use the nimbus.alarm() function, the alarms generated do not contain dev_id or met_id.  Is it possible to add these?

Resolution

This is available in NSA 20.60 and forward with a new function: nimbus.alarm_metric()

You must populate the parameters with fields that are associated with the QoS that the alarm is related to.  For example, if you want to send an alarm for Disk Delta % then you should associate the alarm with QOS_DISK_DELTA_PERC.

 

The parameters are:

nimbus.alarm_metric (severity, qosname, source, CIname, suppkey, MetricValue, message, hostname, hostip, subsystem )

Example:

source = "<qos source>"
CIname = "Disk Delta Percent"
qosname = "QOS_DISK_DELTA_PERC"
severity = 1
MetricValue = 99.0
message = "Sample Alarm for NSA"
suppkey = "test_suppkey"
subsystem = 9
hostname = "<hostname>"
hostip = "<host ip>"

Sample Output: