Logcheck
Used to scan automatically /var/log/messages and /var/log/secure looking for problems; it sends report mails.
Configure Logcheck: See ID's Blog: http://zeldor.biz/2010/08/configure-logcheck/
Config file: /etc/logcheck/logcheck.conf
Crontab config: /etc/cron.d/logcheck
yum install logcheck
# To avoid the error:
# /usr/sbin/logcheck: line 100: kill: (3917) - No such process
# see https://bugzilla.redhat.com/show_bug.cgi?id=678436
# add the logcheck user group (adm) to the access rights from both log files AND
# give them read access with chmod 640.
chgrp adm /var/log/messages
chmod 640 /var/log/messages
chgrp adm /var/log/secure
chmod 640 /var/log/secure
# To avoid the errors:
# su: PAM unable to dlopen(/lib64/security/pam_fprintd.so):
# /lib64/security/pam_fprintd.so: cannot open shared object file: No such file or directory
# su: PAM adding faulty module: /lib64/security/pam_fprintd.so
# which happens because Anaconda configures fingerprint-auth for PAM but the fingerprint module is not installed.
# See https://bugzilla.redhat.com/show_bug.cgi?id=656434
# Disable it with:
authconfig --disablefingerprint --update
# Test manually.
# See http://zeldor.biz/2010/08/configure-logcheck/
su -s /bin/bash -c "/usr/sbin/logcheck" logcheck
Used to scan automatically /var/log/messages and /var/log/secure looking for problems; it sends report mails.
Configure Logcheck: See ID's Blog: http://zeldor.biz/2010/08/configure-logcheck/
Config file: /etc/logcheck/logcheck.conf
Crontab config: /etc/cron.d/logcheck
yum install logcheck
# To avoid the error:
# /usr/sbin/logcheck: line 100: kill: (3917) - No such process
# see https://bugzilla.redhat.com/show_bug.cgi?id=678436
# add the logcheck user group (adm) to the access rights from both log files AND
# give them read access with chmod 640.
chgrp adm /var/log/messages
chmod 640 /var/log/messages
chgrp adm /var/log/secure
chmod 640 /var/log/secure
# To avoid the errors:
# su: PAM unable to dlopen(/lib64/security/pam_fprintd.so):
# /lib64/security/pam_fprintd.so: cannot open shared object file: No such file or directory
# su: PAM adding faulty module: /lib64/security/pam_fprintd.so
# which happens because Anaconda configures fingerprint-auth for PAM but the fingerprint module is not installed.
# See https://bugzilla.redhat.com/show_bug.cgi?id=656434
# Disable it with:
authconfig --disablefingerprint --update
# Test manually.
# See http://zeldor.biz/2010/08/configure-logcheck/
su -s /bin/bash -c "/usr/sbin/logcheck" logcheck
Comments
Post a Comment
https://gengwg.blogspot.com/