Elmar Hoffmann
2006-Jun-05 15:33 UTC
[Logcheck-devel] new selftest rule and 3ware fix for CVS smartd rules
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
Elmar Hoffmann
2006-Jul-18 00:28 UTC
[Logcheck-devel] new selftest rule and 3ware fix for CVS smartd rules
Hi, on Mon, Jun 05, 2006 at 17:33:46 +0200, I wrote:> 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).While the other part of this mail (matching normal and 3ware drives with the same pattern) got applied, it seems this one got lost. I attached an updated patch for this against current SVN. 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 1176) +++ rulefiles/linux/ignore.d.server/smartd (working copy) @@ -1,3 +1,4 @@ ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[hs]d[[:lower:]]( \[3ware_disk_0[[:digit:]]\])?, starting scheduled (Long|Short) Self-Test\.$ +^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[hs]d[[:lower:]]( \[3ware_disk_0[[:digit:]]\])?, 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[[:digit:]]\])?, SMART Usage Attribute: [[:digit:]]+ [_[:alnum:]]+ changed from [[:digit:]]+ to [[:digit:]]+$ ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[hs]d[[:lower:]]( \[3ware_disk_0[[:digit:]]\])?, Temperature changed (-|\+)?[1-2]+ Celsius to [[:digit:]]+ 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/20060718/1f3447e7/attachment.pgp
Elmar Hoffmann
2006-Sep-13 20:35 UTC
[Logcheck-devel] new selftest rule and 3ware fix for CVS smartd rules
Hi, on Tue, Jul 18, 2006 at 02:28:20 +0200, I wrote:> > 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).Again updated against latest SVN.</hint> ;) 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 1217) +++ rulefiles/linux/ignore.d.server/smartd (working copy) @@ -1,3 +1,4 @@ ^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device: /dev/[^[:space:]]+( \[(3ware|cciss)_disk_[[:digit:]]+\])?, starting scheduled (Long|Short) Self-Test\.$ +^\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]+\]: Device: /dev/[^[:space:]]+( \[(3ware|cciss)_disk_[[:digit:]]+\])?, 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/[^[:space:]]+( \[(3ware|cciss)_disk_[[:digit:]]+\])?, Temperature changed (-|\+)?[1-3]+ 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/20060913/ecfb1f33/attachment.pgp