Put it on the local host and use the “Execute Program” alert in “Run Script” mode to run the script remotely. If you need to restart the program on a remote server you should use an external VBS script.If you need to restart the program on the local host the IPHost is installed on, you can use the “Execute Program” alert in the “Run program” mode.Both use an alert configured to run once a monitor switches to Down state: To restart the program you can use 2 options. SELECT ProcessId FROM Win32_Process WHERE Name = ‘startup.exe’ ProcessId, HandleCount or VirtualSize from the list specified at: (VS.85).aspxįor example, you can use the following query to find if the process is alive: You can choose any integer property of Win32_Process class, e.g. Note that each monitor should return integer value, so you should SELECT some integer property of the process to use it as a monitor performance value. The monitor will show the number of running processes with the specified name, so if the number is ‘0’, than the process is stopped and should be restarted.Īlso, you can use a custom WMI query to find if the process is alive. How can I detect that a process no longer runs and restart it?Ī: You can use WMI Process monitor to check if the process in question is alive: set the ‘Name’ monitor parameter to the process executable name, like ‘startup.exe’ and leave the ‘Metric’ parameter as default ‘Processes total’. Q: Certain processes on my Windows computer should always be running. How to monitor a Windows process and restart it when it goes down?
0 Comments
Leave a Reply. |