From: Sebastian Harl Date: Fri, 25 Jul 2008 13:46:19 +0000 (+0200) Subject: README.Debian: Updated description of collectd2html.pl. X-Git-Tag: collectd-4.4.2-1~4 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=a9f602e389814f56cf897d82200b2f272f1243e0;p=pkg-collectd.git README.Debian: Updated description of collectd2html.pl. Added a note about how to get collectd2html.pl working with version 4 of collectd. --- diff --git a/debian/README.Debian b/debian/README.Debian index 63086be..4c22f5e 100644 --- a/debian/README.Debian +++ b/debian/README.Debian @@ -28,6 +28,17 @@ solutions are welcome. "/var/lib/collectd/" and generate a static HTML file and a directory containing several PNG files which are graphs of the RRD files found. + This script was intended to be used with version 3 of collectd but still + seems to be in use by some people. To get it working with version 4, you + have to call it once for each subdirectory containing RRD files. A sample + wrapper might look like this: + + for dir in /var/lib/collectd/rrd/$hostname/*; do + out_dir=`basename "$dir"` + mkdir -p $out_dir + ( cd $out_dir && collectd2html.pl --data-dir="$dir" ) + done + - collection.cgi: Sample CGI script that creates graphs on the fly. The Perl modules "RRDs" (package librrds-perl), "URI:Escape" (package liburi-perl), "HTML::Entities" (package libhtml-parser-perl) and a CGI capable web server diff --git a/debian/changelog b/debian/changelog index d505632..cab9a41 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,8 +9,10 @@ collectd (4.4.2-1) unstable; urgency=low * Include collection3 in /usr/share/doc/collectd/examples/: - Updated README.Debian to point the collection3's README. - Added libconfig-general-perl to the suggested packages. + * README.Debian: Added a note about how to get collectd2html.pl working with + version 4 of collectd. - -- Sebastian Harl Fri, 25 Jul 2008 15:27:56 +0200 + -- Sebastian Harl Fri, 25 Jul 2008 15:44:43 +0200 collectd (4.4.1-2) unstable; urgency=low