[Logcheck-devel] Bug#295560: logcheck: Please include filename when reporting "invalid regular expression"
Frank Küster
frank at kuesterei.ch
Wed Feb 16 17:49:25 UTC 2005
Package: logcheck
Version: 1.2.34
Severity: wishlist
I have a couple of home-made logcheck ignore files, and happened to
have one unescaped (and unmatched) `(' in one of the filter
lines. Because of this, cron sent a mail with the body "grep: Invalid
regular expression" - the subject is the command in the "2 * * * *"
line in /etc/cron.d/logcheck, of course.
It would be nice if logcheck would tell me in which file the error
was. This should be easy, since egrep returns 1 if it finds no match
and 2 with an invalid regular expression.
Regards, Frank
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (900, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.4.27
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Versions of packages logcheck depends on:
ii adduser 3.59 Add and remove users and groups
ii cron 3.0pl1-86 management of regular background p
ii debconf [debconf-2.0] 1.4.30.11 Debian configuration management sy
ii debianutils 2.8.4 Miscellaneous utilities specific t
ii exim [mail-transport-agent] 3.36-13 An MTA (Mail Transport Agent)
ii lockfile-progs 0.1.10 Programs for locking and unlocking
ii logcheck-database 1.2.34 A database of system log rules for
ii logtail 1.2.34 Print log file lines that have not
ii mailutils [mailx] 1:0.6-2 GNU mailutils utilities for handli
ii sysklogd [system-log-daemon] 1.4.1-16 System Logging Daemon
-- debconf information:
* logcheck/auto_create_logfiles: true
logcheck/upgrade-note:
* logcheck/changes:
* logcheck/install-note:
* logcheck/email_address: root at localhost
More information about the Logcheck-devel
mailing list