Learn how to send Apache data collected by collectd to Wavefront.

Apache is a popular open source web server. To collect Apache data with collectd, use the collectd Apache plugin documentation found at Plugin:Apache - collectd Wiki.

Apache Setup

Enable the mod_status module in your Apache configuration:

ExtendedStatus on  
<Location /mod_status>  
  SetHandler server-status  
</Location>

Installation

  1. On your collectd host, copy the example configuration into /etc/collectd/managed_config/.
  2. Edit the settings in the file for your Apache server.
  3. Restart collectd.

Example collectd Configuration

LoadPlugin "apache"
<Plugin "apache">
  <Instance "apache80">
  URL "http://localhost/mod_status?auto"
  User "collectd"
  Password "hoh2Coo6"
  </Instance>
  <Instance "lighttpd8080">
  URL "http://localhost:8080/mod_status?auto"
  </Instance>
</Plugin>