Find out how to solve problems related to installing OneAgent on AIX.
If you used OneAgent for AIX prior to v1.137 you may have configured it via
JAVA_OPTS using the
dynatrace-java-env.sh script. You need to remove this prior to using the unified monitoring scripts
dynatrace-java-env.shisn't called anywhere in your shell when you use the
dynatrace-java-env.shis deprecated and should only be used as a fallback.
Check for and remove the following parameter from your Java command line or startup scripts (specific directory may vary):
You may encounter an error like this when you use
dynatrace-agentXX.sh in a shell script.
Info: using DT_HOME: /opt/dynatrace/oneagent .profile LDR_PRELOAD64: parameter not set
This happens if you use
set -u to treat unset variables and parameters as errors. The
dynatrace-agentXX.sh script exports variables which, though they may not yet exist in your script, are nevertheless needed and key to proper operation. To overcome this, call
set +u ahead of the
# avoid error set +u export DT_HOME=/opt/dynatrace/oneagent . $DT_HOME/dynatrace-agent64.sh
Following installation of OneAgent, your Apache web server must be completely restarted to enable monitoring. To do this correctly, it's important to understand the difference between "partial" and "complete" restarts. In the case of partial restarts, the main Apache process re-reads its configuration files, re-opens its log files, and then restarts its worker processes. OneAgent however, requires a complete Apache web server restart in which all workers and—most importantly—the main Apache process are shut down entirely and then restarted.
See Stopping and Restarting Apache HTTP Server for more information on the different types of available restarts.
How to perform a complete restart
You may be accustomed to restarting Apache by issuing an
apachectl restart command. However, this command only results in a partial Apache restart.
To execute a complete Apache restart and enable deep monitoring with Dynatrace OneAgent, you need to first invoke a complete shutdown using the
apachectl stop command. Only following this step can you restart the server using
apachectl start .
OneAgent consists of different processes that communicate via a TCP port with a watchdog. At startup, OneAgent watchdog attempts to open the first available port between port
50100. In some cases you may need this port for your own applications that are started after OneAgent. In such cases, you can change the port range that the OneAgent watchdog uses by modifying the file
watchdoguserconfig.conf is located in the following directory:
You can change the watchdog listening port by modifying the following line in the file:
From, for example:
Be sure to restart OneAgent service following your changes.
Please see Which network ports does Dynatrace Server use? for information on the ports used by Dynatrace.