retitle 739625 collectd: collection.cgi does not support df plugin
tags 739625 + fixed-upstream
thanks

On Thu, Feb 20, 2014 at 12:32:11PM -0300, Joel Franco Guzmán wrote:
> Since Wheezy i can't run the df plugin in collection.cgi.
> 
> I install the collection.cgi since squeeze running:
> 
>   # apt-get install collectd libhtml-parser-perl librrds-perl apache2
>   # cp /usr/share/doc/collectd/examples/collection.cgi /usr/lib/cgi-bin/

Side-note: collection.cgi is just an example and somewhat outdated in
general. collection3 (also included in /u/s/d/collectd/examples/) is
generally preferred nowadays.

> I have read in web about exclude some types of filesystems. That solved
> the log problem (another problem) but not the graphic generation.

Note that the new default configuration shipped with the latest versions
of collectd in Debian exclude a bunch of filesystems by default.

> I can see the graphs borders, but not the graphics itself.

The problem is that the df plugin changed from data-type 'df' to
'df_complex' in collectd 5.x and collection.cgi was not updated in that
respect. I've pushed a patch upstream to fix this:
https://github.com/collectd/collectd/commit/25831ec7b1d3d36a7f2dac2baf9a47c8099deba4

You should be able to simply apply this patch to your local version of
collection.cgi. Also, it will be included in the next upstream release
but I won't push the fix to Wheezy.

Cheers,
Sebastian

-- 
Sebastian "tokkee" Harl +++ GnuPG-ID: 0x8501C7FC +++ http://tokkee.org/

Those who would give up Essential Liberty to purchase a little Temporary
Safety, deserve neither Liberty nor Safety.         -- Benjamin Franklin

Attachment: signature.asc
Description: Digital signature

Reply via email to