This tool helps you monitor your HDD or NVMe disk for changes in SMART values, indicating potential failures and notify you some when a failure values changed. It also sends a daily "I am alive" message to confirm that the tool is active.
-
You need only smartctl-notifier.py file. Or you can clone the repository:
cd /root/ git clone https://github.com/vgdh/smartctl-notifier
-
Run the app once to create the necessary file structure:
cd /root/smartctl-notifier/ && python3 smartctl-notifier.py
-
Open the email configuration file and add your email credentials:
nano /root/smartctl-notifier/.smartctl-notifier-storage/email_credential
Add your credentials to the file:
[email protected] youraccesstoken_or_password
-
Run the app again to ensure there are no errors in the console log:
cd /root/smartctl-notifier/ && python3 smartctl-notifier.py
-
Set up a cron task to run the app hourly:
0 * * * * cd /root/smartctl-notifier/ && python3 smartctl-notifier.py
If you use proxmox redirect standart output to null, or you will be receiving too much email with standart output
0 * * * * cd /root/smartctl-notifier/ && python3 smartctl-notifier.py > /dev/null