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:
- Open Command Prompt on the Applications Manager server
- Run the following command to check the Apache server's response
telnet <Apache_Hostname> <Apache_Portnumber> - After the connection is established, type the following:
GET / HTTP/1.0 - Press Enter. Look at the response for the Server header, which should include "Apache" in it. For example:
HTTP/1.1 200 OK
Date: Wed, 14 Jun 2006 07:23:49 GMT
Server: Apache/2.0.55 (Win32)
Content-Location: index.html.en - 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
- 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.
- Check whether the Apache server status URL(http(s)://[HOST]:[PORT]/server-status) is accessible from the Applications Manager server.
Note: The URL will differ based on your Apache configuration. - 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].
- 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,
- Copy the new URL path from the Location tag.
- 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: - A screenshot of the "Add Monitor" page.
- Access the Apache server status URL(http(s)://[HOST]:[PORT]/server-status) in browser and share the response.
- 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".