Monitoring Apache Workers & Scoreboard

Follow this guide to fetch performance data & the “Apache Scoreboard” for use with collectd & Wormly Metrics.

Apache Scoreboard Monitoring Graph

Apache Request Rate Graph

First, enable extended status within your Apache configuration:

ExtendedStatus on
<Location /mod_status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
</Location>

Reload or restart Apache to put the updated config into effect:

apachectl graceful

Now, configure the apache plugin for collectd by placing monitor-apache.conf in your collectd config directory (e.g. /opt/wormly/collectd/etc/collectd.d/):

LoadPlugin "apache"
<Plugin "apache">
    # Leave "Instance" blank unless you have multiple
    # Apache instances, in which case you can provide 
    # a name to identify each instance
   <Instance "">
       URL "http://127.0.0.1/mod_status?auto"
   </Instance>
</Plugin>

Test your configuration:

collectd-wormly -T

No errors and {"ok":true} shown on the console? Reload the daemon to commence data collection:

service collectd-wormly restart

Monitoring Multiple Instances of Apache

You may have multiple instances of Apache running on a single host that you wish to monitor separately. To achieve this, simply duplicate the <Instance> block and change the URL and Instance values to suit your configuration:

# The default instance
<Instance "">
   URL "http://127.0.0.1/mod_status?auto"

For another Apache instance:

# Backend http instance
<Instance "backend-http">
   URL "http://127.0.0.1:8080/mod_status?auto"

Downtime Hurts. Start monitoring and stop worrying.

Our monitoring service continually tests your servers & web sites to keep you online and performing fast. Fully-featured plans start from just $25 / month.

But don't listen to our spiel - Decide for yourself with a free trial »