Percona Apache Monitoring Template for Cacti

These templates use ss_get_by_ssh.php to connect to a server via SSH and extract statistics from the Apache server running there, by executing the wget program with the url /server-status.

Installation

Once the SSH connection is working, configure Apache to report its status. The typical setup is to enable status for 127.0.0.1 at the URL /server-status. If you decide to use a different URL, you’ll have to configure that in the script configuration (covered in the general install guide) or pass a command-line option (also covered in the general install guide).

Be sure to configure Apache with the ExtendedStatus On directive so you get full status.

Finally, test one of your hosts like this. You may need to change some of the example values below, such as the cacti username and the hostname you’re connecting to:

sudo -u cacti php /usr/share/cacti/scripts/ss_get_by_ssh.php --type apache --host 127.0.0.1 --items gg,gh

Sample Graphs

The following sample graphs demonstrate how the data is presented.

../_images/apache_bytes.png

The number of bytes sent by Apache.

../_images/apache_cpu_load.png

Apache’s CPU usage.

../_images/apache_requests.png

The number of requests that Apache has handled.

../_images/apache_scoreboard.png

The number of Apache processes in each of a variety of statuses.

../_images/apache_workers.png

The number of worker processes busy or idle at any given time.

Percona Monitoring Plugins
Call Us
+1-888-316-9775 (USA - Sales)
+1-208-473-2904 (USA - Sales)
+44-208-133-0309 (UK - Sales)
0-800-051-8984 (UK - Sales)
0-800-181-0665 (GER - Sales)
+1-877-862-4316 (Emergency)
+1-855-55TRAIN (Training)
+1-925-271-5054 (Training)

Table Of Contents

Previous topic

Percona Redis Monitoring Template for Cacti

Next topic

Percona JMX Monitoring Template for Cacti



© Copyright 2012, Percona Inc.
Except where otherwise noted, this documentation is licensed under the following license:
CC Attribution-ShareAlike 2.0 Generic
{@ footer_documentation_bugs @}
This documentation is developed in Launchpad as part of the Percona Monitoring Plugins source code.
If you spotted innacuracies, errors, don't understood it or you think something is missing or should be improved, please file a bug.
{@ /footer_documentation_bugs @} ]]>