Package: collectd Version: 4.10.1-1+squeeze2 Severity: normal
If I have a /etc/collectd/plugins/ping.conf file such as: <Plugin ping> Host 150.101.140.197 Host 2001:44b8:69:2:1::100 </Plugin> Then when I start collectd I get log lines like: Jul 5 18:05:13 ogrady collectd[18720]: ping plugin: ping_host_add (2001.000000 44b8 69.000000 2.000000 1.000000 100.000000) failed: getaddrinfo: Name or service not known Furthermore, if I changed the second Host line to '::1', I don't get these errnoeous log lines. I had a look through the source code of collectd-4.10.1/src/ping.c (and liboping-1.4.0/src/oping.h). Nothing seemed odd there. After a little further reflection, I suspect the configuration parsing code in collectd is incorrectly intepretting the Host string from the config file. The log line output shows that the components of the IPv6 address without any hex letters were convertered to floating point numbers, and the one part with hex letters was left as a string. I tried to follow the collectd parsing code to see if I could identify where the problem occured, but it's been a fair while since I've done any C programming, and I got lost in the collectd-4.10.1/src/liboconfig/parser.c code. I did notice that the upstream collectd.git repository hasn't had any changes in the src/liboconfig since 2009. This gives me hope that this is a current upstream bug as well. -- System Information: Debian Release: 6.0.2 APT prefers stable APT policy: (500, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages collectd depends on: ii collectd-core 4.10.1-1+squeeze2 statistics collection and monitori ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii librrd4 1.4.3-1 time-series data storage and displ Versions of packages collectd recommends: ii iptables 1.4.8-3 administration tools for packet fi ii libatk1.0-0 1.30.0-1 The ATK accessibility toolkit ii libc6 2.11.2-10 Embedded GNU C Library: Shared lib ii libcairo2 1.8.10-6 The Cairo 2D vector graphics libra ii libcurl3-gnutls 7.21.0-2 Multi-protocol file transfer libra ii libdbi0 0.8.2-3 Database Independent Abstraction L ii libdbus-1-3 1.2.24-4+squeeze1 simple interprocess messaging syst ii libdbus-glib-1-2 0.88-2.1 simple interprocess messaging syst ii libesmtp5 1.0.4-5 LibESMTP SMTP client library ii libfontconfig1 2.8.0-2.1 generic font configuration library ii libfreetype6 2.4.2-2.1 FreeType 2 font engine, shared lib ii libgcrypt11 1.4.5-2 LGPL Crypto library - runtime libr ii libglib2.0-0 2.24.2-1 The GLib library of C routines ii libgtk2.0-0 2.20.1-2 The GTK+ graphical user interface ii libhal1 0.5.14-3 Hardware Abstraction Layer - share ii libmemcached5 0.40-1 A C and C++ client library to the ii libmysqlclient16 5.1.49-3 MySQL database client library ii libnotify1 [libnot 0.5.0-2 sends desktop notifications to a n ii libopenipmi0 2.0.16-1.2 Intelligent Platform Management In ii liboping0 1.4.0-1 C/C++ library to generate ICMP ECH ii libpango1.0-0 1.28.3-1+squeeze2 Layout and rendering of internatio ii libpcap0.8 1.1.1-2 system interface for user-level pa ii libperl5.10 5.10.1-17squeeze2 shared Perl library ii libpq5 8.4.8-0squeeze1 PostgreSQL C client library ii libprotobuf-c0 0.12-3+b1 Protocol Buffers C library ii libpython2.6 2.6.6-8+b1 Shared Python runtime library (ver ii librrd4 1.4.3-1 time-series data storage and displ ii libsensors4 1:3.1.2-6 library to read temperature/voltag ii libsnmp15 5.4.3~dfsg-2 SNMP (Simple Network Management Pr ii libssl0.9.8 0.9.8o-4squeeze1 SSL shared libraries ii libtokyotyrant3 1.1.40-4 Tokyo Tyrant runtime libraries ii libupsclient1 2.4.3-1.1squeeze1 network UPS tools - client library ii libvirt0 0.8.3-5+squeeze1 library for interfacing with diffe ii libxml2 2.7.8.dfsg-2+squeeze1 GNOME XML library ii libyajl1 1.0.8-1 Yet Another JSON Library collectd suggests no packages. -- Configuration Files: /etc/collectd/collectd.conf changed: LoadPlugin cpu LoadPlugin df LoadPlugin disk LoadPlugin entropy LoadPlugin interface LoadPlugin irq LoadPlugin load LoadPlugin memory LoadPlugin processes LoadPlugin rrdtool LoadPlugin swap LoadPlugin syslog LoadPlugin users FQDNLookup "true" Include "/etc/collectd/plugins/*.conf" Include "/etc/collectd/thresholds/*.conf" -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org