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 <[EMAIL PROTECTED]> ASCII Ribbon Campaign \ / `. `' GPG key available via pgp.net against HTML email X `- & vCards / \
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$
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$
signature.asc
Description: Digital signature
_______________________________________________ Logcheck-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/logcheck-devel

