IPv6 functionality in ip_ plugin assumse #!/bin/sh being bash
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
munin |
Fix Released
|
Unknown
|
|||
munin (Debian) |
Fix Released
|
Unknown
|
|||
munin (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
Binary package hint: munin
The ip_ plugin in 1.4.5-3ubuntu2 fails to handle IPv6 addresses when /bin/sh is being linked to dash.
Ways to reproduce, assuming the local IPv6 address being 2001:16d8:
root@stilgar:~# ip6tables -I OUTPUT -s 2001:16d8:
root@stilgar:~# ip6tables -I INPUT -d 2001:16d8:
root@stilgar:~# ln -s /usr/share/
root@stilgar:~# ls -l /bin/sh
lrwxrwxrwx 1 root root 4 2011-02-05 14:34 /bin/sh -> dash
export MUNIN_LIBDIR=
root@stilgar:~# /etc/munin/
eval: 1: Syntax error: "(" unexpected
root@stilgar:~# ln -sf /bin/bash /bin/sh
root@stilgar:~# /etc/munin/
in.value 239782
out.value 102625
root@stilgar:~#
This being where the problem arise
case $IP in
*:*) # I know this! This is IPv6!
# This is a fun hack to make the plugin ip6 compatible.
# Suggested in ticket #439 by "jodal".
eval 'function iptables() {
}'
;;
esac
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: munin-node 1.4.5-3ubuntu2
ProcVersionSign
Uname: Linux 2.6.38-1-generic x86_64
Architecture: amd64
Date: Sat Feb 5 14:21:56 2011
InstallationMedia: Ubuntu 11.04 "Natty Narwhal" - Alpha amd64 (20110201.2)
PackageArchitec
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LC_MESSAGES=
LANG=sv_SE.UTF-8
LANGUAGE=
SourcePackage: munin
Related branches
Changed in munin: | |
status: | Unknown → Fix Released |
Changed in munin (Debian): | |
status: | Unknown → New |
Changed in munin: | |
status: | Fix Released → New |
Changed in munin (Debian): | |
status: | New → Confirmed |
Changed in munin (Debian): | |
status: | Confirmed → Fix Released |
Changed in munin: | |
status: | New → Fix Released |
Marking the bug as triaged, given that it has both been confirmed and fixed upstream. The fix, making the plugin explicitly use bash, has been committed to svn and is scheduled to be part of munin 1.4.6.