Hi, on Fri, Sep 08, 2006 at 15:35:19 +0200, martin f krafft wrote:
> also sprach Elmar Hoffmann <[EMAIL PROTECTED]> [2006.09.08.1531 +0200]: > > Maybe a broader /dev/[[:alpha:]]+ in the rules won't hurt? > > Might just as well make it /dev/[^[:space:]]+ IMHO Yeah, all together this would be replacing [hs]d[[:lower:]]( \[3ware_disk_0[[:digit:]] by [^[:space:]]+( \[(3ware|cciss)_disk_[[:digit:]]+ in each smartd rule file then. This should accordinng to smartd(8) also catch those cciss devices and it also catches disks 10-15 on a 3ware controller. Attached a diff against a SVN tree with my logcheck-smartd-revert_attribute_ignore.diff already applied. elmar -- .'"`. /"\ | :' : Elmar Hoffmann <[EMAIL PROTECTED]> ASCII Ribbon Campaign \ / `. `' GPG key available via pgp.net against HTML email X `- & vCards / \
diff -ru logcheck.orig/rulefiles/linux/ignore.d.server/smartd
logcheck/rulefiles/linux/ignore.d.server/smartd
--- logcheck.orig/rulefiles/linux/ignore.d.server/smartd 2006-09-08
16:27:36.529848000 +0200
+++ logcheck/rulefiles/linux/ignore.d.server/smartd 2006-09-09
16:24:55.974425688 +0200
@@ -1,3 +1,3 @@
-^\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:]]\])?, 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[[: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:]]+\])?, starting scheduled
(Long|Short) Self-Test\.$
+^\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$
diff -ru logcheck.orig/rulefiles/linux/violations.ignore.d/logcheck-smartd
logcheck/rulefiles/linux/violations.ignore.d/logcheck-smartd
--- logcheck.orig/rulefiles/linux/violations.ignore.d/logcheck-smartd
2006-09-09 16:20:27.310074970 +0200
+++ logcheck/rulefiles/linux/violations.ignore.d/logcheck-smartd
2006-09-08 16:43:24.716269095 +0200
@@ -1 +1 @@
-^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device:
/dev/[hs]d[[:lower:]]( \[3ware_disk_0[[:digit:]]\])?, SMART Prefailure
Attribute: [[:digit:]]+ [_[:alnum:]]+ changed from [[:digit:]]+ to [[:digit:]]+$
+^\w{3} [ :0-9]{11} [._[:alnum:]-]+ smartd\[[0-9]+\]: Device:
/dev/[^[:space:]]+( \[(3ware|cciss)_disk_[[:digit:]]+\])?, SMART Prefailure
Attribute: [[:digit:]]+ [_[:alnum:]]+ changed from [[:digit:]]+ to [[:digit:]]+$
signature.asc
Description: Digital signature
_______________________________________________ Logcheck-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/logcheck-devel

