Troubleshooting - Apache Server

Troubleshooting - Apache Server

Troubleshooting - Apache Server monitor

If you're encountering issues in Apache Server monitor in Applications Manager, follow these steps to diagnose and resolve the problem:


1. Verify the Server is an Apache Server:
  1. Open Command Prompt on the Applications Manager server
  2. Run the following command to check the Apache server's response
  3. Infotelnet <Apache_Hostname> <Apache_Portnumber>
  4. After the connection is established, type the following:
  5. InfoGET / HTTP/1.0
  6. Press Enter. Look at the response for the Server header, which should include "Apache" in it. For example:
  7. InfoHTTP/1.1 200 OK
    Date: Wed, 14 Jun 2006 07:23:49 GMT
    Server: Apache/2.0.55 (Win32)
    Content-Location: index.html.en
  8. Check the value in the "Server" field. If it contains "Apache", then the server is recognized as an Apache server and Applications Manager can proceed with adding the monitor.

2. Ensure Prerequisite Configuration Steps are Completed
  1. To monitor Apache effectively, the mod_status module must be enabled in Apache. This module provides the performance metrics necessary for Applications Manager to track Apache's performance. Refer to the pre-requisite steps to be done.

3. Check Apache Status URL Accessibility
Applications Manager requires access to the Apache server-status URL to gather performance data.
  1. Check whether the Apache server status URL(http(s)://[HOST]:[PORT]/server-status) is accessible from the Applications Manager server.
  2. NotesNote: The URL will differ based on your Apache configuration.
  3. If your environment requires the use of a proxy server to access Apache server URL(http(s)://[Host/IP]:[PORT]/), then configure the same in Applications Manager. To know how to configure proxy in Applications Manager, [click here].
  4. If proxy is configured in Applications Manager and you want to bypass the Apache server host/IP from routing through the proxy then add the host/IP under the "Do not use proxy for addresses beginning with" column in the same 'Configure Proxy' page in Settings under "Product Settings" click "Proxy Server Settings". 


4. Troubleshoot with below error messages

Error : Access to the Apache Status URL is denied.
This error typically means that the client doesn't have permission to access the requested resource on the server. In the Apache configuration (httpd.conf) file, ensure Applications Manager server hostname/IP address is allowed to access the Server-Status URL

Apache v2.2

Apache v2.4

<Location /server-status>

SetHandler server-status

Order allow,deny

Deny from all

Allow from appmanager.host.com

</Location>

<Location /server-status>

SetHandler server-status

Require all denied

Require host appmanager.host.com

</Location>

 

Error: The Apache Status URL could not be found.

This error indicates the server stats URL is not found on the server. If you have already done the prerequisite, make sure you have provided the correct Server-status URL in Applications Manager.

Default Configuration

Modified Configuration

<Location /server-status>

SetHandler server-status

Order allow,deny

Deny from all

Allow from appmanager.host.com

</Location>

<Location /apache-stats>

SetHandler server-status

Order allow,deny

Deny from all

Allow from appmanager.host.com

</Location>

 If the status URL is modified,

  1. Copy the new URL path from the Location tag.
  2. In Apache server add monitor page -> Enable Modify Apache Status URL option -> Provide the new URL path in Server Status URL field Eg: http(s)://apachehost:apacheport/apache-stats
Still facing issues?
If the problem persists, contact our support team along with the following details:
  1. A screenshot of the "Add Monitor" page. 
  2. Access the Apache server status URL(http(s)://[HOST]:[PORT]/server-status) in browser and share the response.
  3. Reproduce the issue and share the latest Support Information File (SIF) from Applications Manager, with the "Print all logs" option enabled. To do this, go to Settings > Logging, and choose "Print all logs".

                  New to ADSelfService Plus?

                    • Related Articles

                    • Pre-requisite for monitoring apache server metrics

                      The Apache mod_status module enables users to view detailed performance metrics of the Apache web server. You must enable and configure the mod_status correctly in the Apache configuration file to get performance metrics from Apache and view the data ...
                    • Troubleshooting - Apache Solr

                      To troubleshoot Apache Solr Monitor, follow the below steps: Verify Accessibility: Ensure that the Apache Solr instance is accessible from the Applications Manager server. Check Host and Port: Make sure you’ve entered the correct host and port number ...
                    • Troubleshooting - Apache Spark

                      To troubleshoot Apache spark Monitor, follow the below steps: Verify Accessibility: Ensure that the Apache spark instance is accessible from the Applications Manager server. Check Host and Port: Make sure you’ve entered the correct host and port ...
                    • Real User Monitor (RUM) - Troubleshooting

                      If the monitor has not polled data for a long time, follow the steps below for troubleshooting: Step 1: Check the RUM Agent configuration Real User Monitor requires the RUM Agent to be installed and mapped to the Applications Manager. Refer the help ...
                    • Mail Server Monitor - Troubleshooting

                      Common Mail Server Monitor Errors and Troubleshooting Guide 1. Unknown Host Error Description: This error occurs when the mail client cannot resolve the hostname of the mail server to an IP address. The issue typically arises from DNS resolution ...