I would like to run a NAS pre-processor script that looks at the "nimts" field, which represents the time an alarm was created on the originating system. It it possible?
DX UIM - Any Version
NAS probe
This is not supported.
When an alarm comes in to NAS it is considered an "event" when it arrives and does not become an "alarm" until it goes through pre-processing; therefore, a limited number of fields are available for pre-processors vs. those which are available in Auto-Operator.
In a pre-processor script, the following fields are availabe to be read from an incoming 'event' object:
message
level
sid
source
hostname
user_tag1
user_tag2
supp_key
origin
The following additional fields are created when the event exits the pre-processor and may be set on an event object (but not read):
visible
custom_1
custom_2
custom_3
custom_4
custom_5
"nimts" is not exposed to the Lua event table and so it is not possible to read or set the nimts value. It is recorded in the alarm database only.
If you need to operate a script on an alarm based on the time it was generated, the closest thing would be an Auto-Operator script that operates either "on arrival" or "on overdue age" but this takes into account the time of arrival to the local NAS, not the time the alarm originated.