Package: mrtg
Version: 2.17.2-1
Severity: normal

Dear Maintainer,

The cron file look for a WorkDir in config file before actually running
mrtg.
The problem is it do not ignore commented lines, and thus the test fail
and prevent mrtg from running.
In my cron file below I added a "grep -v ^#" in order to skip commented
lines and make things work.

Regards.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 3.0.0 (PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.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.40                
ii  libc6                  2.13-18               
ii  libgd2-xpm             2.0.36~rc1~dfsg-5.1+b1
ii  libpng12-0             1.2.46-3              
ii  libsnmp-session-perl   1.13-1                
ii  perl                   5.12.4-4              
ii  perl-modules           5.12.4-4              
ii  zlib1g                 1:1.2.3.4.dfsg-3      

mrtg recommends no packages.

Versions of packages mrtg suggests:
ii  apache2-mpm-itk [httpd]      2.2.19-2      
ii  elinks [www-browser]         0.12~pre5-4   
ii  iceweasel [www-browser]      5.0-6         
ii  links [www-browser]          2.3-1         
ii  links2 [www-browser]         2.3-1         
ii  mrtg-contrib                 2.17.2-1      
ii  w3m [www-browser]            0.5.3-3       
ii  xemacs21-mule [www-browser]  21.4.22-3.1+b1

-- Configuration Files:
/etc/cron.d/mrtg changed:
*/5 *   * * *   root    if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ] && [ -d 
"$(grep -v '^#' /etc/mrtg.cfg | grep WorkDir | cut -d' ' -f2)" ]; 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 [Errno 13] Permission non accordée: u'/etc/mrtg.cfg'

-- debconf information:
  mrtg/own_user: true
* mrtg/conf_mods: true



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

Reply via email to