I am trying to write a simple lua script for CPU utilization alert. When the message string matches CPU this script should run. I need some help around passing the value of the server in question to the script. How to achieve this. For instance, server 'abc' has triggered a cpu alert, how to pass the name of the server to the script so that I can generate a new alert with the utilization details. Will the below line work when the string matches?
controller = nimbus.request("controller","get_info")
Let me know if this will work as I am trying to learn lua and this will really help me a lot.