Scripts containing Java Programs, vbs scripts and other executable files works fine while running from the command prompt but gives error while monitoring them from Applications Manager.

Scripts containing Java Programs, vbs scripts and other executable files works fine while running from the command prompt but gives error while monitoring them from Applications Manager.

Reason: Applications Manager on executing the script does not know the path for the java, cscript and other executable files.

Solution: To monitor the script, the path should be set within the script. If java is used inside the script,make sure that the class path is set for the java.

Add the below as the first line:

For Linux:
      export path=<path>

For Windows:
      set path=<path>


where <path> is the full path that you get when you type echo $path in Linux and echo %path% for Windows in the command prompt.

                    New to ADSelfService Plus?

                      • Related Articles

                      • Adding APM Insight Java agent in a Kubernetes environment

                        There are three methods for installing the APM Insight Java agent in a Kubernetes environment: Using Dockerfile Using InitContainers Using Persistent Volumes Prerequisites Download the latest APM Insight Java agent ZIP file. Extract the ZIP file and ...
                      • Using Kerberos Authentication with ManageEngine Applications Manager for Windows Monitoring

                        What is Kerberos? Kerberos is a secure authentication protocol used in Active Directory (AD) domains. It uses encrypted "tickets" instead of passwords to allow ManageEngine Applications Manager to connect to a target server securely. When a server is ...
                      • Updating Applications Manager Server Host and Port Details in Server Agents

                        If the hostname or port number of the Applications Manager server changes, you must update the corresponding configuration in the installed server agents so that they can continue communicating with Applications Manager. Supported Versions Server ...
                      • Windows Monitoring - FAQ

                        This Knowledge Base article provides answers to frequently asked questions about Windows Server monitoring using WMI mode. The articles are organized by the monitoring lifecycle to help you quickly identify the relevant troubleshooting guide. ...
                      • Self monitor Applications Manager using APM Insight Java Agent

                        Applications Manager is built with Java, hence we can monitor it using APM Insight Java Agent to measure it's performance continuously, which can be very much useful. Setting up APM Insight Java Agent Follow the below steps to download and set up the ...