How to change alarm messages by using Lua script in NAS

Document ID : KB000046915
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction / Summary: 

How we can change alarm messages by using Lua script in NAS?

  

Instructions:

 1.create new script in the NAS Auto-Operator->Scripts tab

event.message = "some other message"
return event

Capture_script.JPG

2.save the script with the filename as ‘change-message’.

3. go to the NAS pre-processing rules tab and create a rule that looks for the  alarms with the message you want to change and set Filter type to ‘custom’ and choose the custom script ‘change-message’.

 

 Capture_profile.JPG

4.Apply the change

5.You will see the changed message in Alarm window.

Capture_message.JPG