-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Wednesday 2005-10-12 at 12:06 -0500, Patrick Shanahan wrote:
/dev/hda -H -l error -l selftest -s (S/../../2|4|6|7/22|L/../../5/23) /dev/hdb -H -l error -l selftest -s (S/../../2|4|6|7/22|L/../../5/23)
Haven't got around to the mailing thing yet...
"-m <preferred address>"
will provide the mailing note: include on *each* config line
/dev/hda -a -m root -o on -S on -s (S/../.././02|L/../../6/03) -M test /dev/hda -H -l error -l selftest -m root -t -I 194
You will agree that that is cryptic :-) Let's see if I can decipher it... -a Equivalent to turning on all of the following Direc- tives: ´-H´ to check the SMART health status, ´-f´ to report failures of Usage (rather than Prefail) Attributes, ´-t´ to track changes in both Prefailure and Usage Attributes, ´-l selftest´ to report increases in the number of Self-Test Log errors, ´-l error´ to report increases in the number of ATA errors, ´-C 197´ to report nonzero values of the cur- rent pending sector count, and ´-U 198´ to report nonzero values of the offline pending sector count. Note that -a is the default for ATA devices. If none of these other Directives is given, then -a is assumed. -m ADD Send a warning email to the email address ADD if the ´-H´, ´-l´, ´-f´, ´-C´, or ´-O´ Directives detect a failure or a new error, or if a SMART command to the disk fails. This Directive only works in conjunction with these other Directives (or with the equivalent default ´-a´ Directive). -o VALUE Enables or disables SMART Automatic Offline Testing when smartd starts up and has no further effect. The valid arguments to this Directive are on and off. The delay between tests is vendor-specific, but is typically four hours. Note that SMART Automatic Offline Testing is not part of the ATA Specification. Please see the smartctl -o command-line option documentation for further infor- mation about this feature. -M TYPE These Directives modify the behavior of the smartd email warnings enabled with the ´-m´ email Directive described above. These ´-M´ Directives only work in conjunction with the ´-m´ Directive and can not be used without it. test - send a single test email immediately upon smartd startup. This allows one to verify that email is delivered correctly. Instead of a configuration file, it is a bunch of unreadable cryptic options. That's not what I expect to find in a normal configuration file, usually very verbose and understandable. Lets see the next line: /dev/hda -H -l error -l selftest -m root -t -I 194 -H Check the SMART health status of the disk. If any Prefailure Attributes are less than or equal to their threshold values, then disk failure is predicted in less than 24 hours, and a message at loglevel ´LOG_CRITICAL´ will be logged to syslog. [Please see the smartctl -H command-line option.] -l TYPE Reports increases in the number of errors in one of the two SMART logs. The valid arguments to this Directive are: error - report if the number of ATA errors reported in the ATA Error Log has increased since the last check. selftest - report if the number of failed tests reported in the SMART Self-Test Log has increased since the last check, or if the timestamp associated with the most recent failed test has increased. Note that such errors will only be logged if you run self- tests on the disk (and it fails a test!). Self-Tests can be run automatically by smartd: please see the ´-s´ Directive below. Self-Tests can also be run manually by using the ´-t short´ and ´-t long´ options of smartctl and the results of the testing can be observed using the smartctl ´-l selftest´ com- mand-line option.] -t Equivalent to turning on the two previous flags ´-p´ and ´-u´. Tracks changes in all device Attributes (both Prefailure and Usage). [Please see the smartctl -A command-line option.] -p Report anytime that a Prefail Attribute has changed its value since the last check, 30 minutes ago. [Please see the smartctl -A command-line option.] -u Report anytime that a Usage Attribute has changed its value since the last check, 30 minutes ago. [Please see the smartctl -A command-line option.] -I ID Ignore device Attribute ID when tracking changes in the Attribute values. ID must be a decimal integer in the range from 1 to 255. This Directive modifies the behavior of the ´-p´, ´-u´, and ´-t´ tracking Directives and has no effect without one of them. Oh Yea, very easy :-P I have changed my line to (looking at yours): /dev/hda -a -m cer -s (S/../../2|4|6|7/22|L/../../5/23) -M test and now, I'm getting idiotic log entries: Oct 12 22:40:39 nimrodel smartd[4769]: Device: /dev/hda, SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 61 to 62 Oct 12 23:10:39 nimrodel smartd[4769]: Device: /dev/hda, SMART Prefailure Attribute: 1 Raw_Read_Error_Rate changed from 62 to 59 What do I care that the raw error rate has changed? That is not dangerous at all, not even important. It is trivial. Let me see... - -a = -H -f -t -l selftest -l error -C 197 -U 198 - -t = -p -u So I have to use remove "-t" /dev/hda -H -f -l selftest -l error -C 197 -U 198 -m cer -s (S/../../2|4|6|7/22|L/../../5/23) -M test - -- Cheers, Carlos Robinson -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFDTZ1utTMYHG2NR9URAr5zAJ42CZbvFfQUQ3cnofYZ608z6Eji4ACdEfDM 3QAqndPyt+cuuDA7f1EDPKA= =Qq+5 -----END PGP SIGNATURE-----