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?
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: