[Logcheck-users] Re: Debian sarge logckeck - lockfile error

Cyril.Gilly cyril.gilly at eisti.fr
Wed Feb 8 13:30:54 UTC 2006


At 13:00 08/02/2006, you wrote:
>Send Logcheck-users mailing list submissions to
>         logcheck-users at lists.alioth.debian.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.alioth.debian.org/mailman/listinfo/logcheck-users
>or, via email, send a message with subject or body 'help' to
>         logcheck-users-request at lists.alioth.debian.org
>
>You can reach the person managing the list at
>         logcheck-users-owner at lists.alioth.debian.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of Logcheck-users digest..."
>
>
>Today's Topics:
>
>    1. Debian sarge logckeck - lockfile error (Zimmermann, Bernd)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Tue, 7 Feb 2006 12:45:25 +0100
>From: "Zimmermann, Bernd" <b.zimmermann at broadnet.de>
>Subject: [Logcheck-users] Debian sarge logckeck - lockfile error
>To: <logcheck-users at lists.alioth.debian.org>
>Message-ID: <0AD65E11D0CDD44BB3B419E055C514C9015890C9 at ex2k-1.bmcag.de>
>Content-Type: text/plain;       charset="us-ascii"
>
>Hi,
>
>I got eMail from the hourly logcheck-cron job that it
>fails to get the lockfile.
>logcheck is fresh installed:
>
># ls -al /var/lock/logcheck/
>drwxr-xr-x  2 logcheck logcheck 4096 Feb  7 12:36 .
>drwx------  6 root     root     4096 Feb  7 06:26 ..
>
># su -s /bin/bash -c "/usr/sbin/logcheck -t -l /var/log/syslog -d -o"
>logcheck
>D: [1139312644] Turning debug mode on
>D: [1139312644] Sourcing - /etc/logcheck/logcheck.conf
>D: [1139312644] Setting LOGTAIL_OPTS to -t
>D: [1139312644] Setting LOGFILE to /var/log/syslog
>D: [1139312644] Setting MAILOUT to 1
>D: [1139312644] Finished getopts c:dhH:l:L:m:opr:RsS:tTuvw
>D: [1139312644] Trying to get lockfile: /var/lock/logcheck/logcheck.lock
>D: [1139312644] error: Not removing lockfile
>D: [1139312644] Error: Failed to get lockfile:
>/var/lock/logcheck/logcheck.lock
>
>Why ??
>
>Regards,
>Bernd
>

It seems that your /var/lock directory can't be crossed by logcheck : (
drwx------  6 root     root    4096 Feb  7 06:26
.. ) but only by user root ...
try chmod o+rx /var/lock

regards,



Cyril Gilly






More information about the Logcheck-users mailing list