PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : logcheck geht nicght mehr - Fehlermeldung:



www.borchi.de
08.07.04, 21:56
hallo,

ich erhalte die folgende fehlermeldung bei logcheck uaf meiner debian sid kiste.

manuell geht logcheck prima...

das problem ist, ich hab gar nicht so ein verzeichniss in /tmp

was kann ich da machen?


Warning: If you are seeing this message, your log files may not have been
checked!

Details:
Could not run logtail or save output

Check temporary directory: /tmp/logcheck.XX0Uhvvg

declare -x HOME="/var/lib/logcheck"
declare -x LOGNAME="logcheck"
declare -x MAILTO="root"
declare -x OLDPWD
declare -x PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
declare -x PWD="/var/lib/logcheck"
declare -x SHELL="/bin/sh"
declare -x SHLVL="2"

YoZ
31.03.05, 09:32
ich grab hier mal diesen alten thread aus.. habe das selbe problem und weiss nicht weiter.. jemand eine idee hier? läuft auf debian sarge.

grüße..

marce
31.03.05, 10:05
soll heissen, manuell tut's und wann nicht? Als cronjob? Liegt logtail im Suchpfad von cron? Hat cron Rechte auf dem /tmp-Verzeichnis...

*seufz* Meine Glaskugel ist kaputt...


p.s.: Leichenfledderer ;-)

YoZ
31.03.05, 10:10
hier mal meine ausgaben:



debx:/home/yoz# logcheck
logcheck should not be run as root. Use su to invoke logcheck:
su -s /bin/bash -c "/usr/sbin/logcheck [options]" logcheck


funktioniert auch manuell nicht...



debx:/home/yoz# su -s /bin/bash -c "/usr/sbin/logcheck" logcheck
debx:/home/yoz#


danach bekomme ich ein mail mit folgendem inhalt:



Message 1:
From logcheck@debx.linuxp.at Thu Mar 31 11:02:08 2005
Envelope-to: root@debx.linuxp.at
Delivery-date: Thu, 31 Mar 2005 11:02:08 +0200
To: root@debx.linuxp.at
Subject: Logcheck: debx 2005-03-31 11:02 exiting due to errors
From: logcheck@debx.linuxp.at
Date: Thu, 31 Mar 2005 11:02:08 +0200

Warning: If you are seeing this message, your log files may not have been
checked!

Details:
Could not run logtail or save output

Check temporary directory: /tmp/logcheck.jkMTkp

declare -x HOME="/var/lib/logcheck"
declare -x LANG="de_DE@euro"
declare -x LANGUAGE="de_DE:de:en_GB:en"
declare -x LOGNAME="logcheck"
declare -x MAILTO="root"
declare -x OLDPWD
declare -x PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
declare -x PWD="/var/lib/logcheck"
declare -x SHELL="/bin/sh"
declare -x SHLVL="2"


gruß, yoz

YoZ
31.03.05, 10:28
hier noch die letzten zeilen aus dem debug mode:



+ offsetfile=/var/lib/logcheck/offset.var.log.syslog
+ '[' -s /var/lib/logcheck/offset.var.log.syslog -a -r /var/lib/logcheck/offset.var.log.syslog ']'
+ debug 'Running logtail: /var/log/syslog'
+ '[' 0 -eq 1 ']'
+ /usr/sbin/logtail -f /var/log/syslog -o /var/lib/logcheck/offset.var.log.syslog
++ basename /var/log/syslog
+ error 'Could not run logtail or save output'
+ message=Could not run logtail or save output
+ '[' '' = noclean ']'
+ '[' -n 3055 ']'
+ debug 'error: Killing lockfile-touch - 3055'
+ '[' 0 -eq 1 ']'
+ kill 3055
+ unset LOCK
+ '[' -f /var/lock/logcheck.lock ']'
+ debug 'error: Removing lockfile: /var/lock/logcheck.lock'
+ '[' 0 -eq 1 ']'
+ lockfile-remove /var/lock/logcheck
+ debug 'Error: Could not run logtail or save output'
+ '[' 0 -eq 1 ']'
+ '[' 0 -eq 0 ']'
+ cat
+ mail -s 'Logcheck: debx 2005-03-31 11:21 exiting due to errors' root
++ export
+ exit 1
+ cleanup
+ '[' -n '' ']'
+ '[' -f /var/lock/logcheck.lock ']'
+ '[' -d /tmp/logcheck.bWzZnJ ']'
+ '[' 0 -eq 0 ']'
+ debug 'Cleanup: Removing - /tmp/logcheck.bWzZnJ'
+ '[' 0 -eq 1 ']'
+ rm -r /tmp/logcheck.bWzZnJ


gruß, yoz

marce
31.03.05, 10:38
Aufgrund dieser Zeile:

error 'Could not run logtail or save output'

was passiert denn bei

/usr/sbin/logtail -f /var/log/syslog -o
bei manueller Ausführung?

YoZ
31.03.05, 10:42
/usr/sbin/logtail -f /var/log/syslog -o

funktioniert... es geht die datei /var/log/syslog durch..

:mad: