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_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.
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