We have a server with a program called autoview on it. This is older and unsupported by the manufacturer as we've not upgraded to the latest version. It tends to max out the CPU about 1-3 times per day and we have to go in and manually restart the application.
This guest OS is on a VMWare ESX system. (not sure if I can have that trigger a script)
I would like to somehow have either ESX trigger a script to run or a script to determine if the CPU is at 90% or higher for more than 5 minutes that it would then remotely run the script that kills that application and restarts it.
If ESX cannot do this then any script that runs local on the box would work as well.
This is not a service, but an application.
We start it with this script on the local machine:
@start e:\jVue\bin\jVueServerX.exe -standalone %*