Package: munin
Version: 2.0.6-4
Severity: normal
Tags: patch

Hello,

I noticed I was getting occasional "gzip: stdin: file size changed while
zipping" errors from logrotate. This is because /etc/logrotate.d/munin
starts compressing munin-*.log before munin has finished writing to it.

Attached is a patch (against wheezy's version).

-- System Information:
Debian Release: 7.0
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'stable'), (500, 'oldstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/dash

Versions of packages munin depends on:
ii  adduser                      3.113+nmu3
ii  cron                         3.0pl1-124
ii  libcgi-fast-perl             5.14.2-21
ii  libdate-manip-perl           6.32-1
pn  libdigest-md5-perl           <none>
ii  libfile-copy-recursive-perl  0.38-1
ii  libhtml-template-perl        2.91-1
ii  libio-socket-inet6-perl      2.69-2
ii  liblog-log4perl-perl         1.29-1
ii  librrds-perl                 1.4.7-2
pn  libstorable-perl             <none>
ii  liburi-perl                  1.60-1
ii  munin-common                 2.0.6-4
ii  perl [libtime-hires-perl]    5.14.2-21
ii  perl-modules                 5.14.2-21
ii  rrdtool                      1.4.7-2
ii  ttf-dejavu                   2.33-3

Versions of packages munin recommends:
pn  munin-doc   <none>
ii  munin-node  2.0.6-4

Versions of packages munin suggests:
ii  libnet-ssleay-perl      1.48-1+b1
ii  lighttpd [httpd]        1.4.31-4
ii  lynx-cur [www-browser]  2.8.8dev.12-2
ii  nginx-light [httpd]     1.2.1-2.2

-- Configuration Files:
/etc/cron.d/munin changed:
MAILTO=root
*/5 * * * *     munin if [ -x /usr/bin/munin-cron ]; then /usr/bin/munin-cron; 
fi
14 10 * * *     munin if [ -x /usr/share/munin/munin-limits ]; then 
/usr/share/munin/munin-limits --contact nagios --contact old-nagios; fi

-MD

-- 
-------------------------------------------------------------------------------
Michael Deegan                Hugaholic                http://www.deegan.id.au/
-------------------------  Jung, zr jbeel?  -----------------------------------
--- munin.logrotate.orig	2013-01-04 23:05:33.000000000 +0800
+++ munin.logrotate	2013-05-20 16:21:35.553858306 +0800
@@ -3,6 +3,7 @@
 	missingok
 	rotate 7
 	compress
+	delaycompress
 	notifempty
 	create 640 munin adm
 }
@@ -12,6 +13,7 @@
 	missingok
 	rotate 7
 	compress
+	delaycompress
 	notifempty
 	create 640 munin adm
 }
@@ -21,6 +23,7 @@
 	missingok
 	rotate 7
 	compress
+	delaycompress
 	notifempty
 	create 640 munin adm
 }
@@ -30,6 +33,7 @@
 	missingok
 	rotate 7
 	compress
+	delaycompress
 	notifempty
 	create 640 munin adm
 }

Reply via email to