e2e_appmon probe fails to launch script and returns a -3 return code

Document ID : KB000094787
Last Modified Date : 04/05/2018
Show Technical Document Details
Issue:
Script will launch when run manually from the local script editor. However when run from the e2e_appmon profile (either scheduled or via "Start at once") the script does not launch and an error code of -3 is returned. 

e2e_appmon - script return -3

The e2e_appmon.log shows
May  4 11:26:49:189 e2e_appmon: start_at_once - profile example scheduled to be started immediately
May  4 11:26:50:203 e2e_appmon: CheckProfiles2 - Starting example
May  4 11:26:51:217 e2e_appmon: e2e_appmon:ResetEvent being called for example profile
May  4 11:26:51:217 e2e_appmon: example returns -3
May  4 11:26:53:245 e2e_appmon: check that e2e_starter is running - first list all running processes
May  4 11:26:53:245 e2e_appmon: Found 66 process id's
May  4 11:26:53:245 e2e_appmon: check that e2e_starter is running - look for 'e2e_starter.exe'
May  4 11:26:53:245 e2e_appmon: OK - e2e_starter found running
May  4 11:26:53:557 e2e_appmon: suspend from 10.10.20.124/64427
May  4 11:26:53:557 e2e_appmon: list_profiles from 10.10.20.124/64428

The e2e_starter.log shows
May  4 11:26:50:203 e2e_starter: Read configuration file e2e_starter.cfg
May  4 11:26:50:203 e2e_starter: Add environment variables
May  4 11:26:50:203 e2e_starter:    APPMON_QOS_GROUP=QOS_APPLICATION
May  4 11:26:50:203 e2e_starter:    APPMON_QOS_NAME=QOS_E2E_EXECUTION
May  4 11:26:50:203 e2e_starter:    APPMON_PROFILE_NAME=example
May  4 11:26:50:203 e2e_starter:    APPMON_RUN_INTERVAL=300
May  4 11:26:50:203 e2e_starter:    NIM_ROOT=C:\Nimsoft
May  4 11:26:50:203 e2e_starter:    NIM_PROBEID=e2e_appmon
May  4 11:26:50:203 e2e_starter: Start script with command "C:/Program Files (x86)/NimSoft/e2e_scripting/Bin/TaskExec.exe" "iexplorer-Nimsoft Support Home page.rob"
May  4 11:26:50:203 e2e_starter: Error from CreateProcess("C:/Program Files (x86)/NimSoft/e2e_scripting/Bin/TaskExec.exe" "iexplorer-Nimsoft Support Home page.rob"): The system cannot find the file specified.
 
Cause:

The e2e_appmon/e2e_starter processes may not be able to correctly locate either the TaskExec.exe or the Script directory that contains the compiled .rob files. 
 
Resolution:
To correct this launch the e2e_appmon gui, select the 'Setup' Tab, then click the '...' menu for 
   'Command'  and point it directly to the TaskExec.exe binary
       ex. "C:/Program Files (x86)/NimSoft/e2e_scripting/Bin/TaskExec.exe"

  '.ROB file directory' and point it to the Scripts directory (that contains the compiled .rob files)
      ex. C:/Program Files (x86)/NimSoft/e2e_scripting/Scripts

e2e_appmon - set/update Command and .ROB directories


e2e_starter.log after the directory correction
May  4 12:37:31:334 e2e_starter: Start script with command "C:/Program Files (x86)/NimSoft/e2e_scripting/Bin/TaskExec.exe" "iexplorer-Nimsoft Support Home page.rob"
May  4 12:37:31:334 e2e_starter: AddShellIcon (1)...
May  4 12:37:31:334 e2e_starter: Modify/add system tray icon (active)
May  4 12:37:31:334 e2e_starter: Wait for script to terminate
May  4 12:37:44:782 e2e_starter: Return code from example is 0
May  4 12:37:44:782 e2e_starter: Save results
May  4 12:37:44:782 e2e_starter: Event Global\e2e_appmon_event is reset
May  4 12:37:44:782 e2e_starter: AddShellIcon (0)...
May  4 12:37:44:797 e2e_starter: Modify/add system tray icon (idle)
May  4 12:37:44:797 e2e_starter: RefreshSystemTray...
May  4 12:37:45:811 e2e_starter: Wait for event