Your message dated Sat, 24 Jul 2010 20:24:22 +0200
with message-id <[email protected]>
and subject line Re: Bug#575147: munin-node: amavis plugin graphs only show nan
values
has caused the Debian Bug report #575147,
regarding munin-node: amavis plugin graphs only show nan values
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
575147: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=575147
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Hi Daniel,
Am Sat, 24 Jul 2010 18:51:51 +0200
schrieb Daniel Reichelt <[email protected]>:
> On Friday 23 July 2010 23:26:53 you wrote:
> > tags 575147 moreinfo unreproducible
> > thanks
>
> Hm. Had pretty much forgotten about this bug. I just looked at the
> graphs again and no more NAN troubles - even w/o my earlier proposed
> fix. Seems the problem is gone now, please close... Thanks anyways!
same same, thanks for the report! I'll close this bug.
best regards,
Matthias
signature.asc
Description: PGP signature
--- End Message ---