I’m trying to configure alerts just in case any of my hard disk fails.
I’m working on /etc/smartd.conf which is the default file in opensuse, it has only two lines uncommented.
[FONT=monospace]# SUSE default:
# -d removable: Prevent error messages after disconnecting of
# monitored removable discs.
# -s S/: Run Short Self Test every day in the deep night.
# (Takes several minutes.)
# -s L/: Run Extended Self Test every first Sunday in the
# month. (Start earlier, it could take tens of hours.)
DEFAULT -d removable -s (S/../.././03|L/../(01|02|03|04|05|06|07)/7/01)
# The word DEVICESCAN will cause any remaining lines in this
# configuration file to be ignored: it tells smartd to scan for all
# ATA and SCSI devices. DEVICESCAN may be followed by any of the
# Directives listed below, which will be applied to all devices that
# are found. Most users should comment out DEVICESCAN and explicitly
# list the devices that they wish to monitor.
DEVICESCAN
[/FONT]
I’m trying to understand the first line, I guess [FONT=monospace]S/…/…/./03 means run short test every day at 3 o’clock
the other is a bit harder: [FONT=monospace]L/…/(01|02|03|04|05|06|07)/7/01
L is run long test.
FONT=monospace means every day in the week? but /7/ is sunday, isn’t it?
and /01 is run at 1 in the night?
the second not uncomented line: DEVICESCAN says that it make it scan for every device and that “[FONT=monospace]will cause any remaining lines in this configuration file to be ignored”
it means “all lines BELOW this one”, right?
so if I want to check if there is any error and inform me it will simply be set as
[/FONT][/FONT][/FONT][/FONT]
[FONT=monospace][FONT=monospace][FONT=monospace][FONT=monospace]DEFAULT -d removable -s (S/../.././03|L/../(01|02|03|04|05|06|07)/7/01)
/dev/sdc -H -C 0 -U 0 -m my@mail.com
DEVICESCAN
[/FONT][/FONT][/FONT][/FONT]
[FONT=monospace][FONT=monospace][FONT=monospace]
[/FONT][/FONT][/FONT]it is right?
best regards