Last month i came across very useful monitoring module for apache HTTPD called - mod_stats Thought of sharing it across.
Once this module is configured and enabled , user can monitor httpd remotely via browser .Using this tool we can get insights on
CPU usage,
memory consumed ,
no of threads,
throughput
total data transfer and other important stats related to HTTPD ,on the real time basis..
Very simple and easy to use - steps as follows..
Steps to Configure it
1. Copy "mod_status.so" file in " /usr/lib/httpd/modules/"
2. Copy following lines in httpd.conf at the last.
LoadModule status_module /usr/lib/httpd/modules/mod_status.so
ExtendedStatus On
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from IP
</Location>
Note : IP in above snippet is the ip of the machine from which you want to access the server status page.HTTPD will white list this IP for monitoring page access.
3. Restart HTTPD
4 Now launch https://<ip>/server-status?refresh=1
refresh=1 param refreshes this page on auto mode every 1 second
monitoring page will look like ths diplaying all the vital stats about the HTTPD server.