Package: munin-node
Version: 1.4.5-3
Severity: normal

Running ip_ with an ipv6 address yields the following error:

--------------------------------------------------
munin-run ip_2222:222:2:2222::2
+ :
+ . /usr/share/munin/plugins/plugin.sh
+ IP=2222:222:2:2222::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  adduser                3.112+nmu2        add and remove users and groups
ii  gawk                   1:3.1.7.dfsg-5    GNU awk, a pattern scanning and pr
ii  libnet-server-perl     0.97-1            An 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-4    Script SNMP connections

Versions of packages munin-node suggests:
ii  acpi                   1.5-2             displays information on ACPI devic
pn  ethtool                <none>            (no description available)
ii  hdparm                 9.32-1            tune hard disk parameters for high
pn  libcache-cache-perl    <none>            (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-perl        <none>            (no description available)
pn  libnet-ssleay-perl     <none>            (no description available)
pn  libtext-csv-xs-perl    <none>            (no description available)
ii  libwww-perl            5.836-1           Perl HTTP/WWW client/server librar
pn  libxml-simple-perl     <none>            (no description available)
ii  logtail                1.3.13            Print 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-extra    1.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

Reply via email to