Package: mrtg Version: 2.16.2-3 Severity: normal
I'm using tmpfs for /var/lock, as detailed in the /etc/default/tmpfs file: $ cat /etc/default/tmpfs # SHM_SIZE sets the maximum size (in bytes) that the /dev/shm tmpfs can use. # If this is not set then the size defaults to the value of TMPFS_SIZE # if that is set; otherwise to the kernel's default. # # The size will be rounded down to a multiple of the page size, 4096 bytes. SHM_SIZE= RAMRUN=yes RAMLOCK=yes In this case, after a reboot, the /var/lock directory is empty and mrtg fails with this message: 2009-03-27 06:55:03: ERROR: Creating templock /var/lock/mrtg/_etc_mrtg.cfg_l_13644: No such file or directory at /usr/bin/mrtg line 1833. Either mrtg should create the directory, or the cron job must do it. Trivial patch following: --- mrtg 2009-03-27 11:15:00.000000000 -0300 +++ /etc/cron.d/mrtg 2009-03-27 11:15:24.000000000 -0300 @@ -1 +1 @@ -*/5 * * * * root if [ -x /usr/bin/mrtg ] && [ -r /etc/mrtg.cfg ]; then 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 ]; then mkdir -p /var/lock/mrtg; env LANG=C /usr/bin/mrtg /etc/mrtg.cfg 2>&1 | tee -a /var/log/mrtg/mrtg.log ; fi -- System Information: Debian Release: 5.0 APT prefers stable APT policy: (600, 'stable') Architecture: i386 (i686) Kernel: Linux 2.6.26-1-486 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.24 Debian configuration management sy ii libc6 2.7-18 GNU C Library: Shared libraries ii libgd2-noxpm 2.0.36~rc1~dfsg-3 GD Graphics Library version 2 (wit ii libpng12-0 1.2.27-2 PNG library - runtime ii libsnmp-session-perl 1.12-1 Perl support for accessing SNMP-aw ii perl 5.10.0-19 Larry Wall's Practical Extraction ii perl-modules 5.10.0-19 Core Perl modules ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime mrtg recommends no packages. Versions of packages mrtg suggests: ii lighttpd [httpd] 1.4.19-5 A fast webserver with minimal memo ii links [www-browser] 2.1pre37-1.1 Web browser running in text mode ii lynx-cur [www-browser] 2.8.7dev9-2.1 Text-mode WWW Browser with NLS sup pn mrtg-contrib <none> (no description available) -- 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