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
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
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
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.
For general inquiries about our open source software and database management tools, please send us your question and someone will contact you.