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 <[EMAIL PROTECTED]>    ASCII Ribbon Campaign  \ /
`. `'    GPG key available via pgp.net        against HTML email   X
  `-                                                    & vCards  / \
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$

Attachment: signature.asc
Description: Digital signature

Reply via email to