This Monitor can sometimes return errors which are misleading. The most common one is “Access rights are insufficient”. This article will explain how to troubleshoot issues with the External Process Monitor, but first let’s describe the fields:
-[Executable Name]: This is the name of the executable you wish to run. If you want to run a visual basic script, you will need to first start cscript.exe from here.
-[Directory]: This is the location where the executable is located. This path must be local to the ipMonitor host.
-[Command Line Parameters]: These are the parameters to be passed to the executable. If you want to run a vbscript, you will put the script file name and parameters to be passed to it.
-[Startup Directory]: This is the directory where you wish to run the executable from.
-[Credential for Monitoring]: This is the Credential which points to the Windows Account you wish to use in order to trigger this executable.
In order to test these values within a CMD prompt, you first want to make sure to run it as the same account ipMonitor is using. Here’s how:
1. On the ipMonitor system, open a CMD prompt.
2. Type the following command and press Enter:
Runas /user:[Credential for Monitoring] cmd.exe
3. Enter the password when prompted.
This will run a CMD window which will run under the same Windows account used by the Credential assigned to the Monitor.
4. Within the new CMD window, change to the path specified within [Startup Directory].
5. From here, run the following command:
[Directory][Executable Name] [Command Line Parameters]
Example: c:\windows\system32\cscript.exe restart_IIS_pool.vbs websrv1
If this command fails, so will ipMonitor. The error returned by the command should indicate where the issue truly lies.
A few additional things to verify:
IMPORTANT: If calling anything from c:\windows\system32\ directory on a Windows 64-bit OS, make sure the files also exist in c:\windows\sysWOW64\ as all calls to c:\windows\system32\ by 32-bit applications such as ipMonitor are redirected to c:\windows\sysWOW64\.