
Apache
check_apachestatus
Description:
A Nagios plugin that parses the status page of an apache server, the plugin returns the response time, the amount of idle, busy and open slots. The perfdata returns the status of all slots. Optionally you can specify how much slots should be available.
Current Version
Last Release Date
June 22, 2009
Compatible With
Owner
Project Files
File | Description |
---|---|
check_apachestatus.pl | check_apachestatus.pl version 1.1 bug reported by baron42bba solved |
Project Notes
Apache Monitor for Nagios version 1.1
GPL licence, (c)2006-2007 De Bodt Lieven
Usage: /usr/local/nagios/libexec/check_apachestatus.pl -H -p -t -w -c -V
-h, --help
print this help message
-H, --hostname=HOST
name or IP address of host to check
-p, --port=PORT
Http port
-t, --timeout=INTEGER
timeout in seconds (Default: 15)
-w, --warn=MIN
number of available slots that will cause a warning
-1 for no warning
-c, --critical=MIN
number of available slots that will cause an error
-V, --version
prints version number
Note :
The script will return
* Without warn and critical options:
OK if we are able to connect to the apache server's status page,
CRITICAL if we aren't able to connect to the apache server's status page,,
* With warn and critical options:
OK if we are able to connect to the apache server's status page and #available slots > ,
WARNING if we are able to connect to the apache server's status page and #available slots
Reviews
(3)
Add a Review
This plugin was exactly what I was looking for, because we sometimes have Apache machines that reached their MaxClients settings.
However, out of the box this plugin does not work as expected. The script counts the number of 'dots' on the /server-status/ page. The number of dots is the number of ServerLimit minus in use slots.
However, ServerLimit is 256 by default and MaxClients is 150 by default. So if your server is full (MaxClients reached) this module believes there are still 256-150 = 106 open slots available, but that is not true.
To resolve this you have to set your CRITICAL level to atleast 106 or adjust Apache.
Also, this module returns 'WARNING' when Apache is down. I believe this should be 'CRITICAL'. If your Apache is unresponsive due to MaxClients reached, the module will return WARNING instead of CRITICAL while your service is nonresponsive.
However, out of the box this plugin does not work as expected. The script counts the number of 'dots' on the /server-status/ page. The number of dots is the number of ServerLimit minus in use slots.
However, ServerLimit is 256 by default and MaxClients is 150 by default. So if your server is full (MaxClients reached) this module believes there are still 256-150 = 106 open slots available, but that is not true.
To resolve this you have to set your CRITICAL level to atleast 106 or adjust Apache.
Also, this module returns 'WARNING' when Apache is down. I believe this should be 'CRITICAL'. If your Apache is unresponsive due to MaxClients reached, the module will return WARNING instead of CRITICAL while your service is nonresponsive.
Add a Review
You must be logged in to submit a review.
Thank you for your review!
Your review has been submitted and is pending approval.
Recommend
To:
From:
Thank you for your recommendation!
Your recommendation has been sent.
Page Sections
Project Stats
Rating
4 (4)
Favorites
1
Views
141,429