[smartmontools-support] Questions on how automatic self-test results are handled.
Tony Olekshy
smartmon at olekshy.net
Thu Jul 23 21:10:28 CEST 2020
Tony Olekshy wrote, on 2020-07-21 at 13:23 MDT:
>
> We are currently running the smartmontools on our servers using
> this standard entry in the /etc/smartmontools/smartd.conf file
> (all on one line):
>
> DEVICESCAN -H -m root -M exec
> /usr/libexec/smartmontools/smartdnotify -n standby,10,q
>
> Can I enable nightly self-tests by changing that to:
>
> DEVICESCAN -H -s S/../.././03 -m root -M exec
> /usr/libexec/smartmontools/smartdnotify -n standby,10,q
>
> and if so will that automatically send mail if such self-tests
> find trouble, or do I also have to add «-l selftest» like this:
>
> DEVICESCAN -H -l selftest -s S/../.././06 -m root -M exec
> /usr/libexec/smartmontools/smartdnotify -n standby,10,q
Christian Franke wrote, on 2020-07-22 at 09:16 MDT:
>
> '-s REGEXP' starts self-tests only, '-l selftest' is required if
> you want warning mails.
>
> You might also want to add '-l selfteststs' to see the self-test
> status in syslog, for example: "... previous self-test completed
> without error".
Thanks for your assistance, Christian, we've got it all working now.
Yours, &c, Tony Olekshy
More information about the Smartmontools-support
mailing list