Navigation
Most popular articles 
- Why in my workgroup user names in statistics and ... (24848 views)
- HP Install Network Printer Wizard 4.0 - Configuring a ... (19770 views)
- How to configure Apache versions 1.3.x - 2.0.x ? ... (18097 views)
- The application failed to initialize properly (0xc0000142). Click on ... (16143 views)
- How to set proxy for my Windows XP computer ... (14365 views)
- Moving XP User Profile (13563 views)
- HP Jetdirect Print Servers - Installing and Configuring a ... (11755 views)
- Windows Vista: SuperFetch and External Memory Devices (9421 views)
- Shutdown is very slow - Windows XP (9108 views)
- Troubleshooting Windows XP Shutdown Issues (7868 views)
Latest articles 
- Error installing agent service causes Access Denied Error (2010-07-10 19:19)
- An error has occurred while establishing a connection from ... (2010-07-10 19:18)
- How do I install Security Tracker TSxx software for ... (2010-07-10 19:17)
- Terminal Server registry settings for applications (2010-07-10 19:15)
- What is riskware? (2010-07-10 19:13)
Sticky articles
HSLAB HTTP Monitor
Install mod_status
-
Introduction
The "apache-status" protocol provides a way to monitor the internal performance of an Apache web server, and to take action early (i.e. while the server is still working) if something is going wrong. It does this through Apache's mod_status, which needs to be available to use these special functions.
The original development of the Apache-Status code was in response to a failure of Apache's piped logging process which caused a server to lock up. The server was in a chroot jail, and this prevented the piped logging process from re-starting itself. The original idea was to use Monit to observe Apache from outside the chroot, and take action if it spotted a problem. However, following development of the code it became clear that many other aspects of Apache can be monitored, whether it is in a chroot jail or not.
Important: Since these tests uses mod_status, it depends on the Apache server being able to respond. It should therefore be combined with other monitoring to cover the case of a complete server or connection failure.The tests will all work with the ExtendedStatus directive On or Off.
-
Install mod_status
Apache normally compiles with mod_status enabled and built in. To access the status information the apache configuration file (often at /etc/httpd/httpd.conf or /usr/apache/conf/httpd.conf) should include these lines within one of your hosts or virtual hosts:
<Location /server-status>
SetHandler server-status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
The Allow statement ensures that mod_status is only available on the local machine, since it would be insecure to let everybody read the information. If Monit is connecting from a different IP number (i.e. if it is monitoring a remote machine) you should allow the IP from which Monit will connect.
-
Test mod_status
You can view the machine readable version of the Apache mod_status output for your server by entering the standard URL in a browser (Monit depends on this, rather than the human readable page):
http://www.example.co.uk/server-status?auto
This will only work from the allowed IP numbers mentioned in the section above. If everything is working well, you should see a page in your browser like the one below:
Total Accesses: 26
Total kBytes: 13
CPULoad: .0103093
Uptime: 970
ReqPerSec: .0268041
BytesPerSec: 13.7237
BytesPerReq: 512
BusyWorkers: 1
IdleWorkers: 5
Scoreboard:
____W_...........................................................
Tags: -
Related entries:
- How to configure Apache versions 1.3.x - 2.0.x ?
- How to configure For Apache versions 2.2.x ?
- The application failed to initialize properly (0xc0000142). Click on OK to terminate the application.
- The application failed to initialize properly (0xc0000142). Click on OK to terminate the application
- How to configure Apache Module mod_status
- I get an "Error loading MIDAS.dll" error when starting Print Logger and the program refuses to work properly after that.
- In some rare circumstances the software will not start but rather present this error message: "The application failed to initialize properly (0xc0000142). Click on OK to terminate the application."
- How to install and configure mod_status?
- Setting mod_status up
- Current Apache status is with the mod_status module
- Cannot find DAO on your system!
- When I start Print Logger I get error message "Cannot find DAO on your system!"
- Windows XP Problems if Your Profile Is Damaged
- To import a certificate
- Why windows takes so long to start up
Last update: 2006-12-22 02:08
Author: Oleg
Revision: 1.0
You cannot comment on this entry