Oops, I made a mistake in the regexp (left out a pair of brackets). Here's
one that should work.
-------------- next part --------------
^\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)$
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url :
http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20060312/6da78f34/attachment.pgp
reopen 355085 thanks also sprach Adam Porter <adam at alphapapa.net> [2006.03.12.0925 +0100]:> Oops, I made a mistake in the regexp (left out a pair of > brackets). Here's one that should work.> ^\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)$I am on amd64 with a bunch of Samsung drives, and I am seeing Jul 2 17:23:37 pulse smartd[15010]: Device: /dev/sdb, SMART Usage Attribute: 194 Temperature_Celsius changed from 136 to 139 I think logcheck should just ignore all usage attribute changes. smartd does send out its own warnings when things go wrong. -- Please do not send copies of list mail to me; I read the list! .''`. martin f. krafft <madduck at debian.org> : :' : proud Debian developer and author: http://debiansystem.info `. `'` `- Debian - when you have better things to do than fixing a system -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature (GPG/PGP) Url : http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20060703/2d002586/attachment.pgp
Here's what I suggest:
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ smartd\[[[:digit:]]+\]: Device:
/dev/[sh]d[[:lower:]], SMART Usage Attribute: [[:digit:]]+ [[:alnum:]_]+ changed
from [[:digit:]]+ to [[:digit:]]+$
^\w{3} [ :[:digit:]]{11} [._[:alnum:]-]+ smartd\[[[:digit:]]+\]: Device:
/dev/sd[[:lower:]] \[3ware_disk_0[[:digit:]]\], SMART Usage Attribute:
[[:digit:]]+ [[:alnum:]_]+ changed from [[:digit:]]+ to [[:digit:]]+$
--
Please do not send copies of list mail to me; I read the list!
.''`. martin f. krafft <madduck at debian.org>
: :' : proud Debian developer and author: http://debiansystem.info
`. `'`
`- Debian - when you have better things to do than fixing a system
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature (GPG/PGP)
Url :
http://lists.alioth.debian.org/pipermail/logcheck-devel/attachments/20060703/e3305b36/attachment.pgp