Please let me know how to set up a right click action, to change the severity of the selected alarm, for alarms on alarms console in UMP.
Perhaps this will get you what you need?
I need somewhat different to what is mentioned in the forums. What I want is a right click action on the alert in UMP alarm console which will have sub-menu options as the severities like Critical, Major, Minor etc. Once the end user selects an alarm and does a right click and select Change Severity -> Major, the severity of that alert should change from whatever existing to Major.
I can launch a web page by right clicking an alert however I am not sure how to call "alert.set" or equivalent either directly or indirectly inside the web page.
Well, knowing the scripting you had put together in the past, my point was more about wrapping it into a script as the specific functionality you need isn't possible out-of-the-box.
I can launch a perl CGI page whenever an end user clicks on the right click -> Change Severity menu however through perl on remote web server, I don't know what's the equivalent of alarm.set.
Please let me know how to change any alarm, referenced by nimid, severity through perl which is equivalent to alarm.set in lua.
The set_alarm callback in the NAS looked promising, but the whitepaper indicates that only works to set the visibility and the custom fields. You might want to try to set the severity and see what happens.
You can use the script_run callback in the NAS to run a Lua script, which could use the alarm.set() function. It does not look like this callback allows you to pass an argument to the script, which will make it tricky to send the alarm ID. One way around this might be to generate an alarm that is pre-processed to be invisible but tells the script which alarm ID to act upon. Then you can probably skip the callback and just use an AO profile that matches that alarm and takes the corresponding action. It is a bit of a kludge, but it should work.
Maybe someone else would have a more straightforward answer...
The alternate solution of generating an alarm which is set to invisible state in pre-processing and which will be used by an auto-operator profile to change the severity of an alarm seems feasible.
However what I am not sure is how to generate a new alarm in case of a right click action ? As of now, I can call a perl CGI web page from right click action from alarm console in UMP. I can call "nimAlarm" function inside that perl CGI web page though.
Please confirm my understanding.
Yes, you can.
If your version of Perl for the CGI is not compatible with the Perl SDK, you can always call the nimalarm command.
I will try the same and let you know.
I am not sure whether anybody else have thought of it or not but a feature request for calling any external script or even alarm update from alarm console in UMP would be very helpful. At present, the only option it allows is to call a web page.
Retrieving data ...