[Logcheck-devel] new selftest rule and 3ware fix for CVS smartd rules
Elmar Hoffmann
debian-logcheck-devel-ml at elho.net
Mon Jun 5 15:33:46 UTC 2006
Hi,
here's an additional rule for smartd to match the "did test of type L
in current hour, skipping test of type S" messages that occur when a
long selftest is scheduled for the same time as a short one and the
latter is thus skipped (which makes sense when doing the short one
daily and the long one weekly for example).
The first attached patch logcheck-smartd-skipped_selftest.diff adds
that rule.
When writing that rule, I used the disk pattern from the "starting
scheduled ... Self-Test" rule that also matches the messages as
apparently generated for disks behind a 3ware controller and saw that
however the temperature rules use a pattern that would not match
those.
The second attached patch logcheck-smartd-skipped_selftest+3warefix.diff
includes both the new rule like the first patch and additionally fixes
the temperature rules to consistently use the disk pattern matching
the 3ware stuff like all others.
The reason I included both as a choice is that I currently do not have
a 3ware controller at hand to actually check these messages (though
based on the correctness of the existing ones they should be fine).
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
===================================================================
RCS file: /cvsroot/logcheck/logcheck/rulefiles/linux/ignore.d.server/smartd,v
retrieving revision 1.8
diff -u -r1.8 smartd
--- rulefiles/linux/ignore.d.server/smartd 4 Jun 2006 21:19:46 -0000 1.8
+++ rulefiles/linux/ignore.d.server/smartd 5 Jun 2006 15:05:22 -0000
@@ -1,3 +1,4 @@
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[hs]d[[:lower:]]( \[3ware_disk_0[0-9]\])?, starting scheduled (Long|Short) Self-Test\.$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[hs]d[[:lower:]]( \[3ware_disk_0[0-9]\])?, did test of type L in current hour, skipping test of type S$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[[:alpha:]]{3}, SMART Usage Attribute: 194 Temperature_Celsius changed from ([5-9]|[1-4][0-9]|50) to ([5-9]|[1-4][0-9]|50)$
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[[:alpha:]]{3}, Temperature changed (-|\+)?[1-2]+ Celsius to ([5-9]|[1-4][0-9]|50) Celsius since last report$
-------------- next part --------------
Index: rulefiles/linux/ignore.d.server/smartd
===================================================================
RCS file: /cvsroot/logcheck/logcheck/rulefiles/linux/ignore.d.server/smartd,v
retrieving revision 1.8
diff -u -r1.8 smartd
--- rulefiles/linux/ignore.d.server/smartd 4 Jun 2006 21:19:46 -0000 1.8
+++ rulefiles/linux/ignore.d.server/smartd 5 Jun 2006 15:08:12 -0000
@@ -1,3 +1,4 @@
^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[hs]d[[:lower:]]( \[3ware_disk_0[0-9]\])?, starting scheduled (Long|Short) Self-Test\.$
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[[:alpha:]]{3}, SMART Usage Attribute: 194 Temperature_Celsius changed from ([5-9]|[1-4][0-9]|50) to ([5-9]|[1-4][0-9]|50)$
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[[:alpha:]]{3}, Temperature changed (-|\+)?[1-2]+ Celsius to ([5-9]|[1-4][0-9]|50) Celsius since last report$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[hs]d[[:lower:]]( \[3ware_disk_0[0-9]\])?, did test of type L in current hour, skipping test of type S$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[hs]d[[:lower:]]( \[3ware_disk_0[0-9]\])?, SMART Usage Attribute: 194 Temperature_Celsius changed from ([5-9]|[1-4][0-9]|50) to ([5-9]|[1-4][0-9]|50)$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[hs]d[[:lower:]]( \[3ware_disk_0[0-9]\])?, Temperature changed (-|\+)?[1-2]+ Celsius to ([5-9]|[1-4][0-9]|50) Celsius since last report$
-------------- 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/20060605/fa7c62e1/attachment.pgp
More information about the Logcheck-devel
mailing list