Skip to content

Instantly share code, notes, and snippets.

@smolin
Last active September 27, 2017 14:44
Show Gist options
  • Save smolin/e62e0fe910020625467f7fc7481dcc25 to your computer and use it in GitHub Desktop.
Save smolin/e62e0fe910020625467f7fc7481dcc25 to your computer and use it in GitHub Desktop.
monitor a disk drive in linux using smartd and send reports with email
In /etc/smartd.conf, add a line like this before the line with DEVICESCAN in it:
/dev/sda -m your_email@domain.com -M test
The "-M test" says to send an email when smartd starts (in order to test the
email channel).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment