Elmar Hoffmann
2006-Oct-18 15:36 UTC
[Logcheck-devel] Bug#393938: does not ignore smartd warning mail messages
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
Elmar Hoffmann
2006-Oct-21 13:42 UTC
[Logcheck-devel] Bug#393938: closed by madduck@debian.org (martin f. krafft) (Bug#393938: fixed in logcheck 1.2.49)
Hi,
small mixup in the the changelog, attached patch.
elmar
--
.'"`.
/"\
| :' : Elmar Hoffmann <elho at elho.net> ASCII Ribbon Campaign \
/
`. `' GPG key available via pgp.net against HTML email X
`- & vCards / \
-------------- next part --------------
Index: debian/changelog
==================================================================---
debian/changelog (revision 1284)
+++ debian/changelog (working copy)
@@ -64,6 +64,7 @@
* violations.d/smartd: elevate messages about uncorrectable and unreadable
sectors (closes: #392679).
* ignore.d.server/smartd: ignore messages smartd generates when sending
+ warning mail; thanks to Elmar Hoffmann (closes: #393938).
* */*smartd: now filters all smartd attribute changes except for temperature
changes to values higher than and equal to 55, and changes to the
attributes Reallocated_Sector_Ct, Current_Pending_Sector,
@@ -73,7 +74,6 @@
are not going to take place anyway, and an error message is emitted
nevertheless.
* ignore.d.server/cron-apt: handle situations when fetching takes minutes.
- warning mail; thanks to Elmar Hoffmann (closes: #393938).
* ignore.d.server/proftpd: ignore messages about login access limited.
-- martin f. krafft <madduck at debian.org> Wed, 18 Oct 2006 22:11:06
+0200
-------------- 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/20061021/0e80702c/attachment.pgp