[Logcheck-devel] smart attribute messages
Elmar Hoffmann
debian-logcheck-devel-ml at elho.net
Sat Sep 9 14:38:57 UTC 2006
Hi,
on Fri, Sep 08, 2006 at 15:35:19 +0200, martin f krafft wrote:
> also sprach Elmar Hoffmann <debian-logcheck-devel-ml at elho.net> [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 <elho at elho.net> ASCII Ribbon Campaign \ /
`. `' GPG key available via pgp.net against HTML email X
`- & vCards / \
-------------- next part --------------
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:]]+$
-------------- 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/20060909/a2bb878d/attachment.pgp
More information about the Logcheck-devel
mailing list