Hi all,
I am trying to setup an alert trigger to stop a service in case the CPU is running at 100% for more then 15 minutes.
The external program to execute command i am trying is : powershell stop-Service -InputObject $(Get-Service -Computer computer1 -Name "service name")
If i check the alert event it shows that the command executed corectly but the service dose not stop.
If i run it directly from powershell on the Orion server it works perfectly.
On the same server the Start-Service works using the same sintax.
Anyone has any idea on how to actualy stop a service using the alert trigger ?