[smartmontools-support] Questions on how automatic self-test results are handled.

Christian Franke Christian.Franke at t-online.de
Wed Jul 22 17:16:41 CEST 2020


Tony Olekshy wrote:
> 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

'-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".

Regards,
Christian



More information about the Smartmontools-support mailing list