Package: collectd
Version: 5.1.0-3
Severity: important
Tags: patch
Dear Maintainer,
When I tried to graph apache2 stats with collectd/collection.cgi, I got these
results:
* No graph is generated for this plugin (others plugins are graphing ok).
* Apache have mod_status enabled and configured (I can access it via brwoser
and wget).
* Apache's log contains some lines like this:
collection.cgi: RRDs::graph: No DS called 'count' in
'/var/lib/collectd/rrd/jb1.example.org/apache-raiz/apache_bytes.rrd' at
/usr/lib/cgi-bin/collection.cgi line 787
After some googling, I found somewhere that the DS name in the rrd files
changed from 'count' to 'value'.
So I opened collection.cgi in vim and did :960,1021s/count/value. This solved
the issue.
-- System Information:
Debian Release: 7.3
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages collectd depends on:
ii collectd-core 5.1.0-3
ii iptables 1.4.14-3.1
ii libc6 2.13-38
ii librrd41.4.7-2
Versions of packages collectd recommends:
ii libc6 2.13-38
ii libcurl3-gnutls 7.26.0-1+wheezy8
ii libdbi1 0.8.4-6
ii libdbus-1-3 1.6.8-1+deb7u1
ii libesmtp6 1.0.6-1+b1
ii libgcrypt11 1.5.0-5+deb7u1
ii libgdk-pixbuf2.0-0 2.26.1-1
ii libglib2.0-02.33.12+really2.32.4-5
ii libhal1 0.5.14-8
ii libmemcached10 1.0.8-1
ii libmodbus5 3.0.3-1
ii libmysqlclient185.5.35+dfsg-0+wheezy1
ii libnotify4 0.7.5-1
ii libopenipmi02.0.16-1.3
ii liboping0 1.6.2-1
ii libpcap0.8 1.3.0-1
ii libperl5.14 5.14.2-21+deb7u1
ii libpq5 9.1.12-0wheezy1
ii libprotobuf-c0 0.14-1+b1
ii libpython2.72.7.3-6+deb7u2
ii librabbitmq00.0.1.hg216-1
ii librrd4 1.4.7-2
ii libsensors4 1:3.3.2-2+deb7u1
ii libsnmp15 5.4.3~dfsg-2.7
ii libssl1.0.0 1.0.1e-2
ii libtokyotyrant3 1.1.40-4.1+b1
ii libupsclient1 2.6.4-2.3+deb7u1
ii libvarnishapi1 3.0.2-2+deb7u1
ii libvirt00.9.12.3-1
ii libxml2 2.8.0+dfsg1-7+nmu2
ii libyajl22.0.4-2
collectd suggests no packages.
-- Configuration Files:
/etc/collectd/collectd.conf changed:
FQDNLookup true
LoadPlugin syslog
Plugin syslog
LogLevel info
/Plugin
LoadPlugin apache
LoadPlugin battery
LoadPlugin cpu
LoadPlugin df
LoadPlugin disk
LoadPlugin entropy
LoadPlugin interface
LoadPlugin irq
LoadPlugin load
LoadPlugin memory
LoadPlugin processes
LoadPlugin rrdtool
LoadPlugin swap
LoadPlugin users
Plugin apache
Instance raiz
URL http://localhost/server-status?auto;
Server apache
VerifyPeer false
VerifyHost false
/Instance
/Plugin
Plugin rrdtool
DataDir /var/lib/collectd/rrd
/Plugin
Include /etc/collectd/filters.conf
Include /etc/collectd/thresholds.conf
-- no debconf information
--- collection.cgi 2014-04-07 16:35:46.904246245 -0300
+++ collection-ok.cgi 2014-04-07 16:35:27.980245363 -0300
@@ -957,9 +957,9 @@
$GraphDefs =
{
-apache_bytes = ['DEF:min_raw={file}:count:MIN',
-'DEF:avg_raw={file}:count:AVERAGE',
-'DEF:max_raw={file}:count:MAX',
+apache_bytes = ['DEF:min_raw={file}:value:MIN',
+'DEF:avg_raw={file}:value:AVERAGE',
+'DEF:max_raw={file}:value:MAX',
'CDEF:min=min_raw,8,*',
'CDEF:avg=avg_raw,8,*',
'CDEF:max=max_raw,8,*',
@@ -976,9 +976,9 @@
'GPRINT:avg:LAST:%5.1lf%s Last',
'GPRINT:avg_sum:LAST:(ca. %5.1lf%sB Total)\l'
],
- apache_connections = ['DEF:min={file}:count:MIN',
-'DEF:avg={file}:count:AVERAGE',
-'DEF:max={file}:count:MAX',
+ apache_connections = ['DEF:min={file}:value:MIN',
+'DEF:avg={file}:value:AVERAGE',
+'DEF:max={file}:value:MAX',
AREA:max#$HalfBlue,
AREA:min#$Canvas,
LINE1:avg#$FullBlue:Connections,
@@ -987,9 +987,9 @@
'GPRINT:max:MAX:%6.2lf Max,',
'GPRINT:avg:LAST:%6.2lf Last'
],
-apache_idle_workers = ['DEF:min={file}:count:MIN',
-'DEF:avg={file}:count:AVERAGE',
-'DEF:max={file}:count:MAX',
+apache_idle_workers = ['DEF:min={file}:value:MIN',
+'DEF:avg={file}:value:AVERAGE',
+'DEF:max={file}:value:MAX',
AREA:max#$HalfBlue,
AREA:min#$Canvas,
LINE1:avg#$FullBlue:Idle Workers,
@@ -998,9 +998,9 @@
'GPRINT:max:MAX:%6.2lf Max,',
'GPRINT:avg:LAST:%6.2lf Last'
],
-apache_requests = ['DEF:min={file}:count:MIN',
-'DEF:avg={file}:count:AVERAGE',
-'DEF:max={file}:count:MAX',
+apache_requests = ['DEF:min={file}:value:MIN',
+'DEF:avg={file}:value:AVERAGE',
+'DEF:max={file}:value:MAX',
AREA:max#$HalfBlue,
AREA:min#$Canvas,