[Logcheck-commits] logcheck source and rules branch, master, updated. 53866d5987bc66308ab0808d72669fb0b19d4ab5
martin f. krafft
madduck at madduck.net
Sat Aug 25 08:55:41 UTC 2007
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "logcheck source and rules".
The branch, master has been updated
via 53866d5987bc66308ab0808d72669fb0b19d4ab5 (commit)
from 603c473374fbeecb39c84e673a595616a98a54c6 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 53866d5987bc66308ab0808d72669fb0b19d4ab5
Author: Micah Anderson <micah at debian.org>
Date: Fri Aug 24 22:02:23 2007 -0400
Enable alternate temporary directory to be set in the configuration file
On servers where the logfiles are very large and grow quickly, the
logcheck processes may run into space issues in /tmp resulting in the
email such as the following to be sent:
cp: writing `/tmp/logcheck.y12449/checked': No space left on device
/usr/sbin/logcheck: line 161: cannot create temp file for here document: No space left on device
mail: /tmp/mail.RsXXXXpc2eAx: No space left on device
Null message body; hope that's ok
Followed by an empty email.
This is not good because of a few reasons:
1. /tmp fills up temporarily, other problems can result from this
2. You loose logcheck for this run
Although logcheck falls back to /var/tmp if it cannot create a directory in /tmp,
it doesn't allow the admin to set a temporary directory other than /tmp if this
condition presents itself.
The solution is simple, the attached patch adds a new configuration to
/etc/logcheck/logcheck.conf for a TMP variable, sets it to be default
what logcheck uses now (/tmp) and alters the logcheck executable to honor this
variable when set.
Signed-off-by: martin f. krafft <madduck at madduck.net>
-----------------------------------------------------------------------
Summary of changes:
etc/logcheck.conf | 12 ++++++++++++
src/logcheck | 2 +-
2 files changed, 13 insertions(+), 1 deletions(-)
hooks/post-receive
--
logcheck source and rules
More information about the Logcheck-commits
mailing list