Hi,
I am trying to create an alert which will triggers when the Solarwinds detected that the services that it monitored is down. The things that I am trying to achieve is:
1. I have created a SAM template which monitors a Windows service (e.g. edp.exe)
2. If the service is down (it can only starts back if certain steps are fulfilled), it will trigger a script to run on the node. The script will
- Delete a file
- Then start the services
3. End
I have tried this, simulate on the newly created alerts and it was successful (FYI, the script is located on the Solarwinds
\ drive. But on the actual node, it does nothing. Tried these few command, does not work, any help would be good. Thanks.
Below script used - Does not work
Powershell.exe -executionpolicy remotesigned -File
\Scripts\EDPFix.ps1 -computer ${N=SwisEntity;M=Caption}
Powershell.exe -executionpolicy remotesigned -File
\Scripts\EDPFix.ps1