07 May 2018 09:25 PM - last edited on 09 Dec 2021 10:33 AM by MaciejNeumann
The dynatrace documentation indicates we have to setup manually the IBM HTTP Server. Where we've to add this parameters?
Only execute this command on the host? or any application context?
Solved! Go to Solution.
07 Nov 2019 04:45 PM
Just ran into this as well - the documentation is not very helpful / outdated.
After you install the agent open the configuration file of the agent located in (replacing $DT_HOME with your install directory) $DT_HOME/agent/conf/ruxitagent.conf and copy the value of Server, Tenant, and TenantToken for later use.
Then these are the lines you would add to your httpd.conf in order to instrument (I'm sure you could just use the local activegate address or cluster address for server if you wanted as well):
LoadModule oneagent_module $DT_HOME/agent/lib64/liboneagentloader.so
OneAgentConfig tenant=<tenant-id>,tenantToken=<tenant-token>,server=<server>
07 Nov 2019 08:50 PM
The proper method is to put those variables into IHSHOME/bin/envvars file. Same for Apache HTTP server.
This is standard file for environment variables picked up when starting / shutting down IHS / Apache using apachectl (the standard and preferred method for starting / stopping IHS or apache).
If you are using default Oneagent installation directory, the file should look like this:
export DT_HOME=/opt/dynatrace/oneagent
export LDR_PRELOAD64=$DT_HOME/agent/lib64/liboneagentproc.so
export LDR_PRELOAD=$DT_HOME/agent/lib/liboneagentproc.so
Another method is to use the autoinstrumentation on AIX available as EAP feature.
The method by putting the module into httpd.conf is obsolete and should be avoided. This applies for very old Oneagent.
08 Nov 2019 03:15 PM
Thank you!! I'm not an expert in IBMIHS and the teams I worked with didn't know what to do with those two lines when I provided the documentation so I used the fall back.
08 Nov 2019 03:18 PM
You are welcome. The approach will definitely work both IHS, Apache HTTP server and probably also to other derivations (OHS for example). You just need to start the HTTP server using the startup scripts and not directly by running httpd binary.
08 Nov 2019 04:03 PM
Is that different than starting with apachectl start ?
08 Nov 2019 07:38 PM
I've seen customers with custom apache builds starting and stopping the process directly, but this is not very common.
Just in your case ensure the process is started using the startup script (apachectl or other script caling apachectl).