Bug#703567: munin-node: ip_ does not work with an ipv6 address

2013-03-20 Thread Jean-Philippe Guerard
Package: munin-node
Version: 1.4.5-3
Severity: normal

Running ip_ with an ipv6 address yields the following error:

--
munin-run ip_:222:2:::2
+ :
+ . /usr/share/munin/plugins/plugin.sh
+ IP=:222:2:::2
+ INPUT=INPUT
+ OUTPUT=OUTPUT
+ eval function iptables() {
/sbin/ip6tables $@
}
eval: 1: Syntax error: ( unexpected
--

The ip_ script starts with #!/bin/sh and function is a bash-ism.

Replacing #!/bin/sh by #!/bin/bash on line 1 (and line 2) solves this issue.

Replacing:

--
eval 'function iptables() {
/sbin/ip6tables $@
}'
--

by

--
eval 'iptables() {
/sbin/ip6tables $@
}'
--

also solves this issue.

-- System Information:
Debian Release: 6.0.7
  APT prefers stable
  APT policy: (990, 'stable'), (500, 'proposed-updates')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Versions of packages munin-node depends on:
ii  adduser3.112+nmu2add and remove users and groups
ii  gawk   1:3.1.7.dfsg-5GNU awk, a pattern scanning and pr
ii  libnet-server-perl 0.97-1An extensible, general perl server
ii  lsb-base   3.2-23.2squeeze1  Linux Standard Base 3.2 init scrip
ii  munin-common   1.4.5-3   network-wide graphing framework (c
ii  perl   5.10.1-17squeeze6 Larry Wall's Practical Extraction 
ii  procps 1:3.2.8-9squeeze1 /proc file system utilities

Versions of packages munin-node recommends:
ii  libnet-snmp-perl  5.2.0-4Script SNMP connections

Versions of packages munin-node suggests:
ii  acpi   1.5-2 displays information on ACPI devic
pn  ethtoolnone(no description available)
ii  hdparm 9.32-1tune hard disk parameters for high
pn  libcache-cache-perlnone(no description available)
pn  libcrypt-ssleay-perl   none(no description available)
pn  libdbd-mysql-perl  none(no description available)
ii  libdbd-pg-perl 2.17.1-2+squeeze1 Perl DBI driver for the PostgreSQL
pn  liblwp-useragent-deter none(no description available)
pn  libnet-irc-perlnone(no description available)
pn  libnet-ssleay-perl none(no description available)
pn  libtext-csv-xs-perlnone(no description available)
ii  libwww-perl5.836-1   Perl HTTP/WWW client/server librar
pn  libxml-simple-perl none(no description available)
ii  logtail1.3.13Print log file lines that have not
ii  munin  1.4.5-3   network-wide graphing framework (g
pn  munin-java-plugins none(no description available)
ii  munin-plugins-extra1.4.5-3   network-wide graphing framework (u
pn  mysql-client   none(no description available)
ii  net-tools  1.60-23   The NET-3 networking toolkit
ii  python 2.6.6-3+squeeze7  interactive high-level object-orie
ii  ruby   4.5   An interpreter of object-oriented 
ii  smartmontools  5.39.1+svn3124-2  control and monitor storage system

-- Configuration Files:
/etc/munin/munin-node.conf changed [not included]
/etc/munin/plugin-conf.d/munin-node [Errno 13] Permission denied: 
u'/etc/munin/plugin-conf.d/munin-node'

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/munin/plugins/ip_ (from munin-node package)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#703567: munin-node: ip_ does not work with an ipv6 address

2013-03-20 Thread Kenyon Ralph
tags 703567 fixed-upstream
thanks

On 2013-03-20T23:21:52+0100, Jean-Philippe Guerard 
jean-philippe.guer...@tigreraye.org wrote:
 Package: munin-node
 Version: 1.4.5-3
 Severity: normal
 
 Running ip_ with an ipv6 address yields the following error:
 
 --
 munin-run ip_:222:2:::2
 + :
 + . /usr/share/munin/plugins/plugin.sh
 + IP=:222:2:::2
 + INPUT=INPUT
 + OUTPUT=OUTPUT
 + eval function iptables() {
   /sbin/ip6tables $@
   }
 eval: 1: Syntax error: ( unexpected
 --
 
 The ip_ script starts with #!/bin/sh and function is a bash-ism.
 
 Replacing #!/bin/sh by #!/bin/bash on line 1 (and line 2) solves this issue.

This was fixed upstream:
https://github.com/munin-monitoring/munin/commit/2f72cd57dba6d148bf013cdc96bc9ae92f2bd936

 Replacing:
 
 --
 eval 'function iptables() {
 /sbin/ip6tables $@
 }'
 --
 
 by
 
 --
 eval 'iptables() {
 /sbin/ip6tables $@
 }'
 --
 
 also solves this issue.

This was also fixed upstream:
https://github.com/munin-monitoring/munin/commit/fa0b8dd560c3be41d0b1b8bcce1a2aca8924ac0a

-- 
Kenyon Ralph


signature.asc
Description: Digital signature