Pass parameter/variable to auto-healing script
Currently, when a threshold alert fires, it is possible for the alert to trigger an auto-healing script to run. For example, if the Service that is being monitored stops, it is possible to assign a script to launch to start the service.
The problem is that you have to have a unique script for each service. It should be possible to pass or expose parameters/variables from the alert to the script. This way, we can develop generic scripts and reuse them for multiple threshold alerts.
Nice! The feature you requested is being reviewed by our product team. We’ll keep an eye on the number of votes, and let you know if a decision is reached to implement. Thank you for being a partner in our process!
-
Gabriele Dal Toe' commented
it would also be useful to set a default value to the variable, so that it can be changed before running, for example, a script
-
Kenneth Qvistgaard Dalbjerg commented
Also on other scripts :). Threshold scripts, and automations aswell.
-
Eric Hester commented
This would be useful for running scripts via the device or via automations as well..
Basically the ability to use context variables like service name, process name, device name, company id, ip address, mac address depending on where you are launching the script so you can have a generic script in all locations like automation and manual in addition to the alert use case above.