18 Aug 2018 04:48 AM
If I understand correctly, httpd.conf of apache should be using 'LoadModule' syntax instead of 'export'.
But in the documentation I only see export:
So what is the correct syntax to add to the http.conf file to enable Apache service discovery in AIX?
Thanks.
Solved! Go to Solution.
19 Aug 2018 09:03 PM
Adding the export (preloading the library) is preferred with recent Oneagent version on AIX. You don't have to touch the apache configuration at all. You just need to ensure the environments are exported in the execution context where you start the apache server.
Adding the configuration manually to apache config files is still possible, but it is discouraged.
09 Oct 2019 06:26 AM
So, where should I add these 3 lines to? If I want to monitor the apache in the AIX server?
09 Oct 2019 07:13 AM
Actually, depending on your installation, the best method I know is to include those environments (DT_HOME / LDR_PRELOAD / LDR_PRELOAD64) in the <apachehome>/bin/envvars :
export DT_HOME=/opt/dynatrace/oneagent
export LDR_PRELOAD64=$DT_HOME/agent/lib64/liboneagentproc.so
export LDR_PRELOAD=$DT_HOME/agent/lib/liboneagentproc.so
If your apache (ihs) is started using standard apachectl shell script (and not directly with httpd binary), this will work well. With OneAgent 1.175 this should not be necessary anymore since automatic injection should be available on AIX.