Documentation

Monitoring an Apache server

On the page

Need some help?

Here are the prerequisites for monitoring Apache with service templates:

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

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

a2enmod status 

Restart or reload Apache if necessary.

To limit access to your domain (e.g. example.com), you need to add the following entry in 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 pre-requisites for Apache monitoring using the template:

  • Apache-Slow-Requests

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

For example:

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

This may also be of interest to you

en_US
fr_FR en_US

Welcome to ServiceNav!

Need help? More information about our products? Write to us!
You have taken note of our privacy policy.

[COVID - 19 ] - TELEWORKING, TARGET AVAILABILITY 100% !

While the epidemic lasts, ensure the availability and performance of your IT services for teleworking, with ServiceNav!

Following the government's call to mobilize to help businesses overcome the current health and economic context, we help you, free of charge, to ensure the complete monitoring of your teleworking environments: VPN, VDI, Teams, Skype Enterprise, Citrix... Objectives: collection, availability and usage indicators, dashboards to support your communication.
We use cookies to ensure that you have the best possible experience on our site, and 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.