[Logcheck-devel] Bug#393938: does not ignore smartd warning mail messages
Elmar Hoffmann
elho at elho.net
Wed Oct 18 15:36:36 UTC 2006
Package: logcheck-database
Version: 1.2.48
Severity: normal
Tags: patch
logcheck does not ignore the messages smartd generates when sending
out a warning mail like these:
--8<---
Oct 16 11:57:08 stranger smartd[3788]: Sending warning via /usr/share/smartmontools/smartd-runner to root ...
Oct 16 11:57:09 stranger smartd[3788]: Warning via /usr/share/smartmontools/smartd-runner to root: successful
--8<---
The fact that a mail was sent is of course not very interesting when
you've already got that mail anyway. :)
The attached patch against current SVN adds 2 rules to
ignore.d.server/smartd to ignore these messages.
elmar
--
.'"`. /"\
| :' : Elmar Hoffmann <elho at elho.net> ASCII Ribbon Campaign \ /
`. `' GPG key available via pgp.net against HTML email X
`- & vCards / \
-------------- next part --------------
Index: rulefiles/linux/ignore.d.server/smartd
===================================================================
--- rulefiles/linux/ignore.d.server/smartd (revision 1241)
+++ rulefiles/linux/ignore.d.server/smartd (working copy)
@@ -3,3 +3,5 @@
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[^[:space:]]+( \[(3ware|cciss)_disk_[[:digit:]]+\])?, SMART Usage Attribute: 9 Power_On_Hours changed from [0-9]+ to [0-9]+$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[^[:space:]]+( \[(3ware|cciss)_disk_[[:digit:]]+\])?, Temperature changed (-|\+)?[1-3]+ Celsius to ([5-9]|[1-4][0-9]|50) Celsius since last report$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[^[:space:]]+( \[(3ware|cciss)_disk_[[:digit:]]+\])?, did test of type L in current hour, skipping test of type S$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Sending warning via [^[:space:]]+ to [^[:space:]]+ \.\.\.$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Warning via [^[:space:]]+ to [^[:space:]]+: successful$
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20061018/08a89083/attachment.pgp
More information about the Logcheck-devel
mailing list