Skip to content

Instantly share code, notes, and snippets.

@waterpipe
Created July 31, 2013 07:07
Show Gist options
  • Save waterpipe/6119931 to your computer and use it in GitHub Desktop.
Save waterpipe/6119931 to your computer and use it in GitHub Desktop.
samrtd.conf - smartmontools daemon configuration
/dev/sda \ # The device to monitor
-a \ # Implies all standard testing and reporting.
-n standby,10,q \ # Don't spin up disk if it is currently spun down
\ # unless it is 10th attempt in a row.
\ # Don't report unsuccessful attempts anyway.
-o on \ # Automatic offline tests (usually every 4 hours).
-S on \ # Attribute autosave (I don't really understand
\ # what it is for. If you can explain it to me
\ # please drop me a line.
-R 194 \ # Show real temperature in the logs.
-R 231 \ # The same as above.
-I 194 \ # Ignore temperature attribute changes
-W 3,50,50 \ # Notify if the temperature changes 3 degrees
\ # comparing to the last check or if
\ # the temperature exceeds 50 degrees.
-s (S/../.././02|L/../../1/22) \ # short test: every day between 2-3am
\ # long test every Monday between 10pm-2am
\ # (Long test takes a lot of time
\ # and it should be finished before
\ # daily short test starts.
\ # At 3am every day this disk will be
\ # utilized heavily as a backup storage)
-m root \ # To whom we should send mails.
-M exec /usr/share/smartmontools/smartd-runner # standard debian script
/dev/sda -a -n standby,10,q -o on -S on -R 194 -R 231 -I 194 -W 3,50,50 -s (S/../.././02|L/../../1/22) -m root -M exec /usr/share/smartmontools/smartd-runner
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment