File README of Package monitoring-plugins-apache2

check_apache2.sh

Current Version: 1.3
Last Release Date: 2009-09-09

Compatible With: Nagios 2.x
                 Nagios 3.x

Owner: Mike Adolphs
E-mail: mike@fooforge.com
Website: http://exchange.nagios.org/directory/Plugins/Web-Servers/Apache/check_apache2-2Esh/details

Files: check_apache2.sh		The plugin (v1.3)
       LICENSE				GNU GPLv2 License
       check_apache2.php	PNP template
       
Summary:

sh compliant script to check Apache's HTTP Server via mod_status and ps

Description:
check_apache2.sh is a Nagios plugin to check the Apache's server status.
It monitors requests per second, bytes per second/request,
amount of busy/idle workers and its CPU load.

Let me know when it's not working for you via Mail or in my blog and I'll solve the problem.

Example call:
./check_apache2.sh -H localhost -P 80 -t 3 -b /usr/sbin -p /var/run
-n apache2.pid -s status_page [-S] [-R] [-wr] 100 [-cr] 250

Options:
-H|--hostname)
Sets the hostname. Default is: localhost
-P|--port)
Sets the port. Default is: 80
-t|--timeout)
Sets a timeout within the server's status page must've been accessed. Otherwise the check will go into an error state.
Default is: 3
-b|--binary-path)
Sets the path to the apache binary. Used for getting Apache's CPU load. Default is: /usr/sbin
-p|--pid-path)
Path to Apache's pid file. Default is: /var/run
-n|--pid-name)
Name of Apache's pid file. Default is: apache2.pid
-s|--status-page)
Defines the name of the status page. Default is: server-status
-R|--remote-server)
Disabled the pid check so that remote Apaches can be queried. Default is: off
-S|--secure)
Enables HTTPS (no certificate check though). Default is: off
-wr|--warning-req)
Sets a warning level for requests per second. Default is: off
-cr|--critical-req)
Sets a critical level for requests per second. Default is: off
openSUSE Build Service is sponsored by