Monitoring Apache activity

The Apache mod_status module provides useful information to find out the activity and performance of the HTTP daemon.

To watch the activity of your Apache webserver edit httpd.conf or apache2.conf or whatever is named in your environment and add the following:

…..
LoadModule status_module modules/mod_status.so
…..

ExtendedStatus On
…..

<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 192.168.10.
</Location>

Now point your browser to…

http://your_server/server-status

You can force the page to refresh automatically every, say, 60 seconds by requesting the following:

http://your_server/server-status?refresh=60

And even make the output suitable for your scripts to be parsed:

lynx -dump “http://192.168.10.2/server-status?auto”

References:

Leave a Reply

You must be logged in to post a comment.