Skip to content

vgdh/smartctl-notifier

Repository files navigation

Smartctl Notifier

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.

How to Use

  1. You need only smartctl-notifier.py file. Or you can clone the repository:

    cd /root/
    git clone https://github.com/vgdh/smartctl-notifier
  2. Run the app once to create the necessary file structure:

    cd /root/smartctl-notifier/ && python3 smartctl-notifier.py
  3. 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
    
  4. Run the app again to ensure there are no errors in the console log:

    cd /root/smartctl-notifier/ && python3 smartctl-notifier.py
  5. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages