Your message dated Mon, 12 Nov 2007 07:02:03 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#438499: fixed in collectd 4.2.0-1
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Subject: collectd: [PATCH] unable to generate the graphs remotely or from 
another dir
Package: collectd
Version: 3.10.4-1
Severity: wishlist
Tags: patch

In the contribs area of the package there is a nice collectd2html.pl
script which assumes that the data is present in /var/lib/collectd and
infers the hostname. All fine and dandy, but there is no way to
override this. This is useful if one generates the data on a machine,
but generates the graphs on another one.


With the attached patch now is possible to specify a different host
and/or a different directory for the data.

The added options are '--host-is' and '--data-dir'.

An invocation for a remote host whose rrd files have been placed in
/var/tmp/collectd-remoteh looks like:




collectd2html.pl --host-is=remoteh --data-dir=/var/tmp/collectd-remoteh




Please send upstream and apply the patch in the next release of
collectd.


Thanks.


-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (900, 'stable'), (50, 'testing')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-amd64
Locale: LANG=ro_RO.UTF-8, LC_CTYPE=ro_RO.UTF-8 (charmap=UTF-8)

Versions of packages collectd depends on:
ii  libc6                       2.3.6.ds1-13 GNU C Library: Shared libraries
ii  librrd2                     1.2.15-0.3   Time-series data storage and displ

collectd recommends no packages.

-- no debconf information
--- collectd2html.pl.orig	2007-08-15 12:58:20.000000000 +0300
+++ collectd2html.pl	2007-08-01 01:31:50.000000000 +0300
@@ -1,4 +1,4 @@
-#!/usr/bin/perl
+#!/usr/bin/perl -w
 
 ################################################################################
 #
@@ -36,12 +36,20 @@
 use strict;
 use Fatal qw(open close);
 use File::Basename;
+use Getopt::Long qw(:config no_ignore_case bundling pass_through);
+
+my $DIR  = "/var/lib/collectd";
+my $HOST = "_UNDEFINED_";
+
+GetOptions (
+    "host-is=s"  => \$HOST,
+    "data-dir=s" => \$DIR
+);
 
-my $DIR = "/var/lib/collectd";
 my @COLORS = (0xff7777, 0x7777ff, 0x55ff55, 0xffcc77, 0xff77ff, 0x77ffff,
 	0xffff77, 0x55aaff);
 my @tmp = `/bin/hostname`; chomp(@tmp);
-my $HOST = $tmp[0];
+$HOST = $tmp[0] if ( $HOST =~ /_UNDEFINED_/ );
 my $IMG_DIR = "${HOST}.dir";
 my $HTML = "${HOST}.html";
 

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: collectd
Source-Version: 4.2.0-1

We believe that the bug you reported is fixed in the latest version of
collectd, which is due to be installed in the Debian FTP archive:

collectd-dbg_4.2.0-1_i386.deb
  to pool/main/c/collectd/collectd-dbg_4.2.0-1_i386.deb
collectd-dev_4.2.0-1_all.deb
  to pool/main/c/collectd/collectd-dev_4.2.0-1_all.deb
collectd_4.2.0-1.diff.gz
  to pool/main/c/collectd/collectd_4.2.0-1.diff.gz
collectd_4.2.0-1.dsc
  to pool/main/c/collectd/collectd_4.2.0-1.dsc
collectd_4.2.0-1_i386.deb
  to pool/main/c/collectd/collectd_4.2.0-1_i386.deb
collectd_4.2.0.orig.tar.gz
  to pool/main/c/collectd/collectd_4.2.0.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Sebastian Harl <[EMAIL PROTECTED]> (supplier of updated collectd package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [EMAIL PROTECTED])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sun, 28 Oct 2007 13:38:21 +0100
Source: collectd
Binary: collectd-dbg collectd-dev collectd
Architecture: source all i386
Version: 4.2.0-1
Distribution: experimental
Urgency: low
Maintainer: Sebastian Harl <[EMAIL PROTECTED]>
Changed-By: Sebastian Harl <[EMAIL PROTECTED]>
Description: 
 collectd   - statistics collection daemon
 collectd-dbg - statistics collection daemon (debugging symbols)
 collectd-dev - statistics collection daemon (development files)
Closes: 422208 438499
Changes: 
 collectd (4.2.0-1) experimental; urgency=low
 .
   * New upstream release.
     - Added options to collectd2html.pl to specify host and data directory
       (Closes: #438499).
     - Link against a thread-safe version of librrd.
     New plugins:
     - IPVS connection statistics: ipvs
     - Statistic of the memcached distributed caching system: memcached
     - Detailed Linux network interface and routing statistics: netlink (32bit
       systems only)
     - Nginx (a HTTP and E-Mail server/proxy) statistics: nginx
     - Values from SNMP enabled network devices: snmp
     - Number of TCP connections to specific ports: tcpconns
     - Bitrate and frequency of music played with XMMS: xmms
   * Updated init script to wait for collectd to shut down (Closes: #422208).
   * Merged all plugin packages into the collectd binary package.
   * Added README.Debian.plugins and gen_plugin_deps.pl to document the plugin
     dependencies.
   * Added collectd.overrides to override shlib-with-non-pic-code errors of
     plugins liked against static libraries which have not been linked with
     -fPIC.
   * Removed debian/examples/myplugin.c and debian/examples/MyPlugin.pm - they
     are included in the upstream sources now.
   * Added libcurl4-gnutls-dev as option to the libcurl3-gnutls-dev build
     dependency.
Files: 
 c2dbfc21dd5e40fd9e217c6ae27eb184 1121 utils optional collectd_4.2.0-1.dsc
 af093d9e3c626d2fab5578e9bf8af880 1049185 utils optional 
collectd_4.2.0.orig.tar.gz
 05b55288d2528c26fc9c3a7488e3224d 24955 utils optional collectd_4.2.0-1.diff.gz
 fe71fd393e9570b80a63ab2ad054314f 312582 utils optional 
collectd_4.2.0-1_i386.deb
 5dc29a5d771bb832349745caf3239b93 334516 utils extra 
collectd-dbg_4.2.0-1_i386.deb
 f583e91bcd6c32983ecd949b291d3daf 44404 utils optional 
collectd-dev_4.2.0-1_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFHMJdm01u8mbx9AgoRAiBPAKCzw9SF9J5DhJdPT08GMjHhdp4MlQCdGYLL
DRi7uq3uiO77Px+MFxV1Zik=
=/mzK
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to