[collectd] apache: curl_easy_perform failed: Failed writing body

kcheek<span style="display: none;">.trailing-username</span>(a)<span style="display: none;">leading-domain.</span>umich.edu kcheek at umich.edu
Sun Nov 26 02:56:19 CET 2006


First, thanks for creating collectd - I just stumbled across it this
weekend while looking for some tools to monitor linux vservers.  It
looks like it might be very useful here.

Unfortunately, I'm having some trouble figuring out what I'm doing
wrong with the apache plugin.  I've installed collectd on several
debian systems.  A few are running sarge with collectd packages from
backports.org (3.10.1) and the others are running sid or etch with
collectd (3.10.3) debian packages.  The systems are all configured as
clients and two are also servers (one sarge system and one sid system)
using multicast.  Most plugins I've tried seem to work, but none of
the systems can successfully use the apache collectd plugin.  No rrd's
are created for apache stats and I'm seeing the following syslog
messages every ten seconds:

collectd[9116]: apache: curl_easy_perform failed: Failed writing body

Per the FAQ, I checked to make sure apache and collectd are configured
to talk to each other properly.

All of the systems have the collectd-apache debian package installed
and apache is configured to allow status requests from localhost with
no username or password.

/etc/collectd/collectd.conf contains:

<Plugin apache>
   URL http://localhost/server-status?auto
</Plugin>

The apache logs seem to indicate that the requests are successful:

127.0.0.1 - - [25/Nov/2006:15:15:44 -0500] "GET /server-status?auto HTTP/1.1" 200 4289 "-" "collectd/3.10.3" "-"

"curl http://localhost/server-status?auto" on the command line
produces:

Total Accesses: 682
Total kBytes: 2855
CPULoad: .0273771
Uptime: 6794
ReqPerSec: .100383
BytesPerSec: 430.309
BytesPerReq: 4286.69
BusyServers: 1
IdleServers: 4
Scoreboard: __W__.................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... ..................................................................................................................... .............


So far, I'm also unable to get statistics with the vserver or mysql
plugins, but I'm not seeing any error messages in syslog for those -
they just don't produce any rrd files.

The mysql.log shows messages like "061125 20:32:10 7 Query SHOW GLOBAL
STATUS" every ten seconds, so I'm guessing that collectd is able to
talk to mysqld.

I'm not sure where to look for problems with the vserver plugin.
/proc/virtual exists and it contains directories with status
information for each running vserver.

Any suggestions?

Thanks!

-kevin



More information about the collectd mailing list