- If you need to restart the program on the local host the IPNetwork is installed on, you can use the “Execute Program” alert in the “Run program” mode.
- If you need to restart the program on a remote server you should use an external VBS script. Put it on the local host and use the “Execute Program” alert in “Run Script” mode to run the script remotely.
Restart.vbs file: ---------------------- Dim args Set args = WScript.Arguments strComputer = args(0) strCommandLine = args(1) Set objWMIService = GetObject _ ("winmgmts:\\" & strComputer & "\root\cimv2:Win32_Process") Error = objWMIService.Create(strCommandLine, null, null, intProcessID) WScript.quit Error ----------------------The script accepts 2 parameters: server host name and the process command line. It can be started from command prompt as:
cscript restart.vbs server C:\\somedirectory\\startup.exeTo call the script from IPNetwork Monitor you should create a custom alerting rule and alert for the monitor and configure them as shown on the screenshots below: