Hi,
We have recently installed and are in the process of setting up Solarwinds to monitor our environment. We are having trouble getting the Trigger Actions to work for our Alert.
What we would like:
When Solarwinds detects that the application on a node is down, Solarwinds should run a powershell script. The powershell script accepts a csv file. Once the script has completed executing (should take a minute or two) the output from the script should be emailed to us.
Highlevel configuration of the trigger actions:
Escalation Level 1:
Name:Run get_status.ps1
Path to External Program: C:\...\APM\powershell.exe -f "C:\...\get_status\get_status.ps1 -F .\CONF\input.csv"
Wait 3 Minutes:
Escalation Lvel 2:
Name:Send an Email/Page
Message Body:
An issue on an object you are monitoring occurred at ${N=Alerting;M=AlertTriggerTime;F=DateTime}.
Status OUTPUT:
${Notes}
${N=Alerting;M=Notes}
Problem:
When we click on simulate the script runs successfully. Then after a couple of minutes we simulate the Sending of the Email/Page however, the output does not include the results of the script i.e. S{Notes} does not populate.
The script is pretty simple, all it does is uses the input to send commands to a remote host and returns the result of the command.
If you need any other information I will try my best to provide it.