Open dennisjenkins75 opened 11 years ago
Update:
The Gentoo package for "collectd-web" is v0.4.0. I noticed that burried in github is a release for 0.4.1. The diff was interesting, so I manually installed 0.4.1 on top of Gentoo's 0.4.0. Many of the graphs that previously did not work are not rendering correctly. Great!
However, "md" still does not render (no image, and apache error log is silent). I know that collectd is putting data into the RRD file (verified with strace and manual use of rrdtools).
Hi dennis, thanks for you ticket. yes the main difference of 0.4.0 and 0.4.1 is that i had added compatibility with collectd 5.x so that should have solved the problem. the fact that md is not working might be because there is no graphdef right now. wanna give it a try ?
I used 0.4.1 on my ubuntu 12.04 and users and ntpd show no graph in collectd-web still
collection.modified.cgi: RRDs::graph: No DS called 'value' in '/var/lib/collectd/rrd/localhost/ntpd/frequency_offset-loop.rrd' at /home/collectd-web/collectd-web/cgi-bin/collection.modified.cgi line 839.
collection.modified.cgi: RRDs::graph: No DS called 'value' in '/var/lib/collectd/rrd/localhost/users/users.rrd' at /home/collectd-web/collectd-web/cgi-bin/collection.modified.cgi line 839.
I've observed this issue with the Fedora EPEL packages under CentOS. The collection 3 cgi script just displays an empty page for the user/entropy plugin.
The script writes following messages to the apache error log:
[Thu Sep 25 00:57:16.286513 2014] [cgi:error] [pid 23227] [client ::1:59941] AH01215: RRDs::graph failed: No DS called 'users' in '/var/lib/collectd/rrd/example.org/users/users.rrd
[Thu Sep 25 00:58:29.798802 2014] [cgi:error] [pid 23228] [client ::1:59942] AH01215: RRDs::graph failed: No DS called 'entropy' in '/var/lib/collectd/rrd/example.org/entropy/entropy.rrd'
The versions of the used packages are:
Name : collectd-web
Version : 5.4.1
Release : 1.el7
Architecture: x86_64
Source RPM : collectd-5.4.1-1.el7.src.rpm
Name : collectd
Version : 5.4.1
Release : 1.el7
Architecture: x86_64
Source RPM : collectd-5.4.1-1.el7.src.rpm
Apparently, the installed /etc/collection.conf
uses non-matching data-source names.
When I change the names (cf. following patch) the graphs are displayed by the cgi as expected:
--- a/collection.conf
+++ b/collection.conf
@@ -241,7 +241,7 @@ GraphWidth 400
RRDFormat "%4.0lf"
</Type>
<Type entropy>
- DataSources entropy
+ DataSources value
DSName entropy Entropy bits
RRDTitle "Available entropy on {hostname}"
RRDVerticalLabel "Bits"
@@ -644,7 +644,7 @@ GraphWidth 400
Scale 0.001
</Type>
<Type users>
- DataSources users
+ DataSources value
DSName users Users
RRDTitle "Users ({type_instance}) on {hostname}"
RRDVerticalLabel "Users"
Gentoo Linux. Latest available "collectd" (5.3.0) and "collectd-web" (0.4.0) for Gentoo portage Fresh RRD files (I installed yesterday, 2013-07-23)
Several plugins simple show no graph in collectd-web. Clicking on some generate errors in apache's log file (ntps, entrophy, users), but other report no errors (and no graphs) (df, md), and others are not even visible in the list of plugins under the hostname (bind). Apache log output is shown below.
Short example: