Knowledge Base

cancel
Showing results for 
Search instead for 
Did you mean: 

Apache Agent Installation Guidelines and Prerequisites

 

This article is intended for anyone installing the Apache Agent.  Please make sure the following 11 prerequisites are in place before installing the agent:

 

  1. Insure that SELinux is not active. Issue the command sestatus at the host command prompt. If SELinux is active and in enforcing mode, you will need to disable it before continuing. Use the command sudo setenforce 0 to temporarily disable SELinux. NOTE: If your system uses SELInux, you will need to create an appropriate policy file in order to allow the Agent and Proxy task to access the necessary log and configuration files.
  2. Determine what the Apacher mode is. Apache can be configured with a number of different modes, including Event, PreFork, or Worker mode. See here for more details on determining the mode your system is configured for: https://www.tecmint.com/check-apache-modules-enabled/ 
  3. If you are running in Worker mode, make sure the ServerLimit and ThreadsPerChild directives are valid. The product of the two (when you multiple the two directive settings together) must be less than 4033. Update the httpd.conf (or the apache2.conf file) to reflect this.
  4. The last line of the httpd.conf file must include the appdynamics_agent.conf file explicitly.  DO NOT RELY on metacharacters or global matching; the file must not be located where other include statements might apply.
  5. Determine the Apache worker process userid. With the Apache server running, issue the command ps -ef | grep httpd (use apache2 if httpd is not the name of the server binary). You will see a "root" process id and several "worker" child processes listed in the output.  The userid associated with the children of the parent process is the Apache worker process id. This can be set explicitly with the Apache User directive.  See here for more details: https://httpd.apache.org/docs/2.4/mod/mod_unixd.html#user 
  6. Make sure that the number of available file descriptors is at least 10000 (10K) for both the Proxy and the Aapche worker process userids. Edit the /etc/security/limits.conf Edit file to verify that this is the case.  There should be both a hard and soft setting for the nofiles entries for the appropriate userid(s).
  7. Insure that the Apache tier has not been previously registered as the incorrect type. If there is already a tier that matches the AppDynamicsTierName value, and its type is not WebServer (i.e. the icon shown isn't a green and blue globe in front of a gray server rack) then most likely the Machine Agent has incorrectly registed the tier. Stop the Machine Agent & Proxy task, delete the tier at the Controller UI, then restart the Proxy to allow it to register the tier as the appropriate type (Apache). Once the tier is registered, restart the Machine Agent. You will want to make sure that the Apache tiers are first registered before using the Machine Agent, but once the tier is registered, you can start both agents in any order.
  8. The default (OOTB) match rule for BTs will be in effect, which creates BTs based on the first two segments of the URL. Once the Agent begins reporting and there is load on the server, you will see BTs register. To avoid BT Overflow, you'll want to make sure that you create the appropriate custom match rules for the Apache agent. For more details on avoiding BT Overflow, please see the KB article here: https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-avoid-quot-BT-OverFlow-quot-within-the-...
  9. Make sure that the Proxy command has been issued. Use the command ps -ef | grep proxy | grep WEB_SERVER | grep -v grep to make sure that there is only one Proxy active. Our best practices suggest you run the Proxy as the same userid as the Apache server worker process. At a minimum, the Proxy task should be started at host boot up and remain active through out the life of the host. There should be no need to restart the Proxy task unless the appdynamics_agent.conf file changes. It is possible to stop/start the webserver without affecting it. Please see here for more details about launching the Proxy: https://docs.appdynamics.com/display/PRO45/Install+the+Apache+Agent#InstalltheApacheAgent-LaunchtheP...
  10. The default (OOTB) match rule for BTs will be in effect, which creates BTs based on the first two segments of the URL. Once the Agent begins reporting, and there is load on the server, you will see BTs register.  To avoid BT Overflow, you'll want to make sure that you create the appropriate custom match rules for the Apache agent.  For more details on avoiding BT Overflow, pleas see the KB article here: https://community.appdynamics.com/t5/Knowledge-Base/How-do-I-avoid-quot-BT-OverFlow-quot-within-the-... 
  11. Apply load to the system. Note that there is a several minute delay between the Agent and the Controller. Make sure the time limit is set to "Last 5 minute" and that you wait at least several minutes for information to be reflected. Any changes made to the configuration or Controller UI will require some time to propogate through the system.  

 

Version history
Revision #:
3 of 3
Last update:
3 weeks ago
Updated by:
 
Labels (1)
0 Kudos