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.


Once the SSH connection is working, configure Apache to report its status. The typical setup is to enable status for 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 --items gg,gh

Sample Graphs

The following sample graphs demonstrate how the data is presented.


The number of bytes sent by Apache.


Apache’s CPU usage.


The number of requests that Apache has handled.


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


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

Table Of Contents

Previous topic

Installing SSH-Based Templates

Next topic

Percona JMX Monitoring Template for Cacti

Contact Us

For free technical help, visit the Percona Community Forum.
To report bugs or submit feature requests, open a JIRA ticket.
For paid support and managed or professional services, contact Percona Sales.