Package: mrtg
Version: 2.17.3-1
Followup-For: Bug #653363

The bug with the character class syntax seems to be in
/etc/cron.d/mrtg, which is debian/cron.d in the source package.
A patch is attached. Thanks!

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages mrtg depends on:
ii  debconf [debconf-2.0]  1.5.41
ii  libc6                  2.13-24
ii  libgd2-xpm             2.0.36~rc1~dfsg-6
ii  libpng12-0             1.2.46-3
ii  libsnmp-session-perl   1.13-1.1
ii  perl                   5.14.2-6
ii  perl-modules           5.14.2-6
ii  zlib1g                 1:1.2.3.4.dfsg-3

mrtg recommends no packages.

Versions of packages mrtg suggests:
ii  elinks [www-browser]    0.12~pre5-7
ii  links [www-browser]     2.4-1
ii  links2 [www-browser]    2.4-1
ii  lynx-cur [www-browser]  2.8.8dev.9-2
ii  mrtg-contrib            <none>
ii  thttpd [httpd]          2.25b-11

-- Configuration Files:
/etc/cron.d/mrtg changed:
*/5 *   * * *   root    if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ] && [ -d 
"$(grep '^[[:space:]]*[^#]*[[:space:]]*WorkDir' /etc/mrtg.cfg | awk '{ print 
$NF }')" ]; then mkdir -p /var/log/mrtg ; env LANG=C /usr/bin/mrtg 
/etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi

/etc/mrtg.cfg changed:
WorkDir: /var/local/mrtg
IconDir: /mrtg/
WriteExpires: Yes
Title[^]: Traffic Analysis for
XSize[_]: 600
Ysize[_]: 300
Target[eth0]: `/usr/local/bin/linux_stats.pl eth0`
Title[eth0]: Traffic on eth0 of schmalenberger.us
PageTop[eth0]: <H1>schmalenberger.us / eth0</H1>
MaxBytes[eth0]: 128000
Options[eth0]: growright bits
LogFormat: rrdtool


-- debconf information:
  mrtg/own_user: true
* mrtg/conf_mods: false
Fixes the character class syntax of [:space:] in grep.
--- a/debian/cron.d
+++ b/debian/cron.d
@@ -1 +1 @@
-*/5 *	* * *	root	if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ] && [ -d "$(grep '^[:space:]*[^#]*[:space:]*WorkDir' /etc/mrtg.cfg | awk '{ print $NF }')" ]; then mkdir -p /var/log/mrtg ; env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi
+*/5 *	* * *	root	if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ] && [ -d "$(grep '^[[:space:]]*[^#]*[[:space:]]*WorkDir' /etc/mrtg.cfg | awk '{ print $NF }')" ]; then mkdir -p /var/log/mrtg ; env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi

Reply via email to