question

Wai C. avatar image
Wai C. asked ·

How to Monitor Apache Services In AIX?

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.

configurationservicesapacheaix
dontunderstand.png (191.8 KiB)
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

1 Answer

Julius L. avatar image
Julius L. answered ·

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.

2 comments Share
10 |2000000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 50.0 MiB each and 250.0 MiB total.

So, where should I add these 3 lines to? If I want to monitor the apache in the AIX server?

0 Likes 0 · ·

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.

0 Likes 0 · ·

Space Topics