Difference between revisions of "Plugin:Apache"

From collectd Wiki
Jump to: navigation, search
Line 36: Line 36:
     <Instance "lighttpd8080">
     <Instance "lighttpd8080">
         <nowiki>URL "http://localhost:8080/mod_status?auto"</nowiki>
         <nowiki>URL "http://localhost:8080/mod_status?auto"</nowiki>

Revision as of 10:11, 19 May 2009

Apache plugin
Type: read
Status: supported
First version: 3.9
Copyright: 2006–2008 Florian Forster
2007 Florent Monbillard
License: GPLv2
Manpage: collectd.conf(5)
List of Plugins


The Apache plugin queries the page generated by mod_status, the status module of the Apache web server, parses it and submits the number of bytes transfered, the number of requests received, and the number of processes in the various states of the scoreboard. The output of the status module of lighttpd is understood, too.

The plugin uses libcurl to connect to the web server, optionally using a configured username/password to authenticate. It tries to keep a keep-alive connection open to minimize the overhead of connecting to the server. It's also possible to query hosts over SSL.

Details of the configuration can be found in the collectd.conf(5) manual page.



ExtendedStatus on
<Location /mod_status>
  SetHandler server-status


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

Example graphs

Plugin-apache-bytes.png Plugin-apache-requests.png Plugin-apache-scoreboard.png