This page describes how to download and install Dynatrace OneAgent on Solaris.
To get started, log in to your Dynatrace SaaS environment at Dynatrace.com using the credentials provided during signup. Then follow the installation steps below.
All hosts that are to be monitored need to be able to send data to Dynatrace. Depending on your Dynatrace deployment and on your network layout and security settings, you may choose to either provide direct access out to Dynatrace or to set up an ActiveGate.
Ensure that your firewall settings allow communication to Dynatrace.
Depending on your firewall policy, you may need to explicitly allow certain outgoing connections. The remote Dynatrace addresses to add to the allow list are given on the installation page for OneAgent.
Generate an access token with the Download OneAgent and ActiveGate installers (InstallerDownload) scope. This token is required to authenticate your API request when downloading the OneAgent installer.
Identify the CPU architecture of your target Solaris host. Use x86 for x86 systems or sparc for SPARC systems. You'll pass this as the arch parameter in the download URL.
Log into your Solaris host and download the installer via the Dynatrace Deployment API using the wget command.
Replace {your-environment-id} with your Dynatrace environment ID, x86 with your target architecture, and <access-token> with the token generated in the previous step.
The wget command isn't installed on Solaris by default. Either install it or use an alternative means of downloading OneAgent.
wget -O Dynatrace-OneAgent-Solaris.zip "https://{your-environment-id}.live.dynatrace.com/api/v1/deployment/installer/agent/solaris/paas/latest?arch=x86" --header="Authorization: Api-Token <access-token>"
Create a folder on your local system for OneAgent (for example, /opt/dynatrace/oneagent) and unzip the ZIP archive into the folder.
Root access isn't required for installation of OneAgent on Solaris. OneAgent can be installed in any directory.
/opt/dynatrace/oneagent/opt/dynatrace/oneagent/logsDynatrace supports only Java and Apache HTTP Server applications on Solaris. Choose whether to monitor a single application or configure monitoring shell-wide, then follow the relevant instructions below.
To monitor a single application, execute your command and prepend it with the following commands.
DT_HOME=/opt/dynatrace/oneagentexport DT_HOMELD_PRELOAD_64=$DT_HOME/agent/lib64/liboneagentproc.soexport LD_PRELOAD_64LD_PRELOAD=$DT_HOME/agent/lib/liboneagentproc.soexport LD_PRELOAD
The DT_HOME variable points to your OneAgent installation folder. You can omit either the 32-bit or 64-bit entry, depending on your environment.
The unified approach works just as well for WebSphere, however you may want to configure your WebSphere via the Administrative console. This works for OneAgent v1.141 and above.
Start the WebSphere server via the WebSphere UI or the command line. For example: /opt/ibm/WebSphere<version>/AppServer/bin/sh startServer.sh server1
Open the Administrative Console via the WebSphere UI or enter the URL in your web browser. For example:http://localhost:9060/ibm/console. When accessing the server remotely, specify the machine's hostname rather than localhost.
Enter your user ID and password and then log in.
Navigate to Server > Application servers > [yourprofilename]> Java and Process Management > Process Definition > Environment Entries > New.
Add 3 entries to the list.
DT_HOME=/opt/dynatrace/oneagentLD_PRELOAD_64=/opt/dynatrace/oneagent/agent/lib64/liboneagentproc.soLD_PRELOAD=/opt/dynatrace/oneagent/agent/lib/liboneagentproc.so
You can omit either the 32-bit or 64-bit entry, depending on your environment. The DT_HOME variable must point to your OneAgent installation folder.
Apply the changes and save the configuration.
To monitor Oracle WebLogic you need to add the following lines to the WebLogic startup script (startWebLogic.sh)
# Monitor WebLogic with Dynatrace OneAgentDT_HOME=/opt/dynatrace/oneagentexport DT_HOMELD_PRELOAD_64=$DT_HOME/agent/lib64/liboneagentproc.soexport LD_PRELOAD_64LD_PRELOAD=$DT_HOME/agent/lib/liboneagentproc.soexport LD_PRELOAD# WebLogic checks and startup, this is part of your script, add the 3 lines prior to this.echo "starting weblogic with Java version:"${JAVA_HOME}/bin/java ${JAVA_VM} -versionif [ "${WLS_REDIRECT_LOG}" = "" ] ; thenecho "Starting WLS with line:"echo "${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME}-Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${PROXY_SETTINGS} ${SERVER_CLASS}"${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME}-Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${PROXY_SETTINGS} ${SERVER_CLASS}elseecho "Redirecting output from WLS window to ${WLS_REDIRECT_LOG}"${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME}-Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${PROXY_SETTINGS}${SERVER_CLASS} 2>&1 >"${WLS_REDIRECT_LOG}"fi
You can omit either the 32-bit or 64-bit entry, depending on your environment. The DT_HOME variable must point to your OneAgent installation folder.
You can set up OneAgent to monitor every application in your current application context. To do this, add the following lines to the startup script of the application you want to monitor. Ensure that they're executed prior to the application itself. You should not do this system-wide or for login users.
OneAgent version 1.141+
DT_HOME=/opt/dynatrace/oneagentexport DT_HOMELD_PRELOAD_64=$DT_HOME/agent/lib64/liboneagentproc.soexport LD_PRELOAD_64LD_PRELOAD=$DT_HOME/agent/lib/liboneagentproc.soexport LD_PRELOAD
LD_PRELOAD will not carry over into sudo or su calls. Moreover, calling sudo in an execution context that has LD_PRELOAD set will lead to an error message that the library is in a non-secure location. This has no negative impact. This message can be ignored.
If you use the WebLogic admin server to restart managed nodes on Solaris, see Troubleshoot OneAgent installation on Solaris to learn how to modify the startup script.
If you have problems with the unified monitoring approach, you can inject OneAgent manually.
Modify the command line of your Java application:
DT_HOME=/opt/dynatrace/oneagent. $DT_HOME/dynatrace-java-env.sh 64java $JAVA_OPTS <MainClass>
Make sure that you include the $JAVA_OPTS variable in your command. For 32-bit Java processes, omit the 64 parameter.
Great, the setup is complete! You can now take a look around your new monitoring environment.
You can access your monitoring environment anytime by going to Dynatrace website and selecting Login in the upper-right corner.
One last thing: to monitor your processes, you need to restart them. You can restart your processes at any time, even during your organization's next planned maintenance period. For details, see Infrastructure & Operations and Processes.