AW: RHEL3 Cron Probleme

Wolfgang Klär <[email protected]>
Newsgroups gmane.linux.redhat.general.german
Message-ID <[email protected]>
>crond läuft noch, richtig? Denn /var/log/cron sieht danach aus.
>Irgendwelche Fehlermeldungen darin?

Crond läuft - Die einzige Fehlermeldung die ich festellen kann ist

Jul 20 05:59:00 ps4 crond[4993]: (gqscanq) ORPHAN (no passwd entry)
Jul 20 05:59:00 ps4 crond[4993]: (tmp.10940) ORPHAN (no passwd entry)

Den User gqscanq gibt es nicht mehr daraufhin habe ich ihn aus
/var/spool/cron/ gelöscht. Das File (ebenfalls in /var/spool/cron/)
tmp.10940 habe ich ebenfalls gelöscht. 


>Existiert /etc/cron.daily/logrotate und ist ausführbar?
>Was steht drin?

/etc/cron.daily/logrotate existiert und ist ausführbar

lrwxrwxrwx    1 root     root           28 Jul 17 00:20 00-logwatch ->
../log.d/scripts/logwatch.pl
-rwxr-xr-x    1 root     root          135 Aug  2  2003 00webalizer
-rwxr-xr-x    1 root     root          800 Jun 28 18:19 certwatch
-rwxr-xr-x    1 root     root          180 Jul  9  2003 logrotate
-rwxr-xr-x    1 root     root          418 Aug 27  2003 makewhatis.cron
-rwxr-xr-x    1 root     root         1333 Aug 15  2003 prelink
-rwxr-xr-x    1 root     root          104 Mar 17 19:15 rpm
-rwxr-xr-x    1 root     root          132 Jan 21  2004 slocate.cron
-rwxr-xr-x    1 root     root          193 Feb 10  2003 tmpwatch

Folgender Inhalt:

#!/bin/sh

/usr/sbin/logrotate /etc/logrotate.conf
EXITVALUE=$?
if [ $EXITVALUE != 0 ]; then
    /usr/bin/logger -t logrotate "ALERT exited abnormally with [$EXITVALUE]"
fi
exit 0




>Ist das "logrotate" Paket heil? rpm -V logrotate
>Wie ist /etc/logrotate.conf konfiguriert?

rpm -V logrotate bringt keine Meldung 
Inhalt:

# see "man logrotate" for details
# rotate log files weekly
weekly

# keep 4 weeks worth of backlogs
rotate 4

# create new (empty) log files after rotating old ones
create

# uncomment this if you want your log files compressed
#compress

# RPM packages drop log rotation information into this directory
include /etc/logrotate.d

# no packages own wtmp -- we'll rotate them here
/var/log/wtmp {
    monthly
    create 0664 root utmp
    rotate 1
}

# system-specific logs may be also be configured here.


>Ist das "sysklogd" Paket heil? rpm -V logrotate
>Wie ist /etc/logrotate.d/syslog konfiguriert?

Auszug von /etc/logrotate.d/syslog


/var/log/messages /var/log/secure /var/log/maillog /var/log/spooler
/var/log/boot.log /var/log/cron {
    sharedscripts
    postrotate
        /bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null
|| true
    endscript
}

LG
Wolfgang
_______________________________________________
redhat-list-de mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-list-de
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.