Documentations

How to monitor an Apache server?

On the page

Do you need help?

Here are the requirements for monitoring Apache with the :

  • Apache-Data-Rate
  • Apache-Requests-Rate
  • Apache-Busy-Idle-Workers

On the Apache server, activate mod-status with the command :

a2enmod status 

Restart or reload Apache if necessary.

To limit access to this information to your domain (e.g. example.com), you need to add the following code to the Apache configuration file: httpd.conf or apache2.conf :


 SetHandler server-status

 Order Deny,Allow
 Deny from all
 Allow from .example.com
 

You can now access your Apache usage statistics from the URL :

http://example.com/server-status

Resources : http://httpd.apache.org/docs/2.2/mod/mod_status.html

 

Here are the requirements for monitoring Apache with the following model:

  • Apache-Slow-Requests

Change the Apache log file configuration to add the time in seconds to serve the request (%T in the LogFormat directive) as the last column

Example:

LogFormat "%h %l %u %t "%r" %>s %b "%{Referer}i" "%{User-Agent}i" %T" combined

You may also be interested in

en_GB

Welcome to ServiceNav!

Do you need some help? More information about our products? Write to us!
You have taken note of our privacy policy.
We use cookies to ensure the best experience on our site. If you continue to use this site, we will assume that you are satisfied with it.

Reserve your place

You have taken note of our privacy policy.