Package: munin-node Version: 1.4.4-1 Severity: normal Tags: patch Hi,
within mktempfile() in amavis plugin the executed variable $cmd looks like this: "/bin/mktemp -p /tmp/ munin-amavis.XXXXXX" where the quotes are part of the string itself. I inserted a set -x in the script and the munin-node.log showed the following: =================== 2010/03/23-20:35:10 [8710] + total=U 2010/03/23-20:35:10 [8710] + virus=U 2010/03/23-20:35:10 [8710] + spamm=U 2010/03/23-20:35:10 [8710] + spams=U 2010/03/23-20:35:10 [8710] ++ mktempfile munin-amavis.XXXXXX 2010/03/23-20:35:10 [8710] +++ echo '"/bin/mktemp' -p /tmp/ '$1"' 2010/03/23-20:35:10 [8710] +++ sed 's/$1/munin-amavis.XXXXXX/' 2010/03/23-20:35:10 [8710] ++ cmd='"/bin/mktemp -p /tmp/ munin-amavis.XXXXXX"' 2010/03/23-20:35:10 [8710] ++ '"/bin/mktemp' -p /tmp/ 'munin-amavis.XXXXXX"' 2010/03/23-20:35:10 [8710] /etc/munin/plugins/amavis: line 82: "/bin/mktemp: No such file or directory 2010/03/23-20:35:10 [8710] + TEMP_FILE= 2010/03/23-20:35:10 [8710] + '[' -n '' -a -f '' ']' 2010/03/23-20:35:10 [8710] + echo 'virus.value U' 2010/03/23-20:35:10 [8710] + echo 'spam_maybe.value U' 2010/03/23-20:35:10 [8710] + echo 'spam_sure.value U' 2010/03/23-20:35:10 [8710] + echo 'total.value U' =================== So the command which actually gets executed is "/bin/mktemp instead of /bin/mktemp Solution: free $cmd variable from quotes. /usr/share/munin/plugins/amavis: 78 mktempfile () { 79 cmd=`echo $MUNIN_MKTEMP | sed s/\\$1/$1/` 80 cmd=${cmd%\"} 81 cmd=${cmd#\"} 82 $cmd 83 } Cheers Daniel -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-dhr (SMP w/2 CPU cores) Locale: LANG=en_US.UTF8, LC_CTYPE=en_US.UTF8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages munin-node depends on: ii adduser 3.112 add and remove users and groups ii gawk 1:3.1.6.dfsg-4 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 Linux Standard Base 3.2 init scrip ii munin-common 1.4.4-1 network-wide graphing framework (c ii perl 5.10.1-11 Larry Wall's Practical Extraction ii procps 1:3.2.8-8 /proc file system utilities Versions of packages munin-node recommends: ii libnet-snmp-perl 5.2.0-3 Script SNMP connections -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org