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