Bug#649542: exim_mailstats: exim_mailstats fails to bootstrap

2012-01-15 Thread Marc Haber
forwarded #649542 http://munin-monitoring.org/ticket/1182
thanks

I have forwarded this upstream.

Greetings
Marc



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#649542: exim_mailstats: exim_mailstats fails to bootstrap

2011-11-21 Thread Jasen Betts
Package: munin-node
Version: 1.4.5-3
Severity: normal
File: exim_mailstats


symptom: munin node returns nonsense values like these:

# munin node at srv1.smtpcorp.com
fetch exim_mailstats
received.value DMK
completed.value DOM
rejected.value FBT

when this is encountered a work-around is to edit the
var/lib/munin/plugin-state/exim_mailstats-*
files and replace the upper-case letters after line two with 0

eg:
 sed '3,$ s/[A-Z]*/0/' -i /var/lib/munin/plugin-state/exim_mailstats-*

This causes it to begin outputting numbers, I don't know if the
numbers are correct.

exim has the follwing set. which may effect the log file content
sufficiently to confuse the plugin:

MAIN_LOG_SELECTOR=+smtp_confirmation -skip_delivery -retry_defer


the bug could to be line 221:

221:  $received = $completed = $rejected = 'U';
 
which could be changed to

221:  $received = $completed = $rejected = '0';


or possibly these lines:

118:$received++;
121:$completed++;
124:$rejected++;

which if changed to 

118:$received+=1;
121:$completed+=1;
124:$rejected+=1;

also results in sensible behaviour


the problem seems to be the difference between ++ and +=1 

jasen$ perl -e '$a='U' ; $a ++ ; print $a\n;'

V

jasen$ perl -e '$a='U' ; $a +=1 ; print $a\n;'

1


-- System Information:
Debian Release: 6.0.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/16 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages munin-node depends on:
ii  adduser3.112+nmu2add and remove users and groups
ii  gawk   1:3.1.7.dfsg-5GNU awk, a pattern scanning and pr
ii  libnet-server-perl 0.97-1An 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-17squeeze2 Larry Wall's Practical Extraction 
ii  procps 1:3.2.8-9 /proc file system utilities

Versions of packages munin-node recommends:
ii  libnet-snmp-perl  5.2.0-4Script SNMP connections

Versions of packages munin-node suggests:
ii  acpi1.5-2displays information on ACPI devic
pn  ethtool none   (no description available)
pn  hdparm  none   (no description available)
pn  libcache-cache-perl none   (no description available)
ii  libcrypt-ssleay-perl0.57-2   Support for https protocol in LWP
pn  libdbd-mysql-perl   none   (no description available)
pn  libdbd-pg-perl  none   (no description available)
pn  liblwp-useragent-determ none   (no description available)
pn  libnet-irc-perl none   (no description available)
ii  libnet-ssleay-perl  1.36-1   Perl module for Secure Sockets Lay
pn  libtext-csv-xs-perl none   (no description available)
ii  libwww-perl 5.836-1  Perl HTTP/WWW client/server librar
ii  libxml-simple-perl  2.18-3   Perl module for reading and writin
pn  logtail none   (no description available)
pn  munin   none   (no description available)
pn  munin-java-plugins  none   (no description available)
pn  munin-plugins-extra none   (no description available)
pn  mysql-clientnone   (no description available)
ii  net-tools   1.60-23  The NET-3 networking toolkit
ii  python  2.6.6-3+squeeze6 interactive high-level object-orie
pn  rubynone   (no description available)
pn  smartmontools   none   (no description available)

-- debconf-show failed



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org