Stop Repeating SMART Error Emails in Proxmox

Proxmox often sends the same SMART error notification repeatedly. You can configure the system to alert you only when errors increase or new ones occur.

Edit SMART Configuration

Open the configuration file:

nano /etc/smartd.conf
Code language: Bash (bash)

Update the Device Scan Line

Comment out the original line and add the one with the attribute log flag:

# DEVICESCAN -d removable -n standby -m root -M exec /usr/share/smartmontools/smartd-runner
DEVICESCAN -d removable -n standby -m root -M exec /usr/share/smartmontools/smartd-runner -a -A /var/lib/smartmontools/smartd.attributelog
Code language: TOML, also INI (ini)

Apply Changes

Restart the service to activate the new logic:

systemctl restart smartmontools
Code language: Bash (bash)

Why This Works

The -A flag logs attributes to a file. The system then compares current disk health against this log, sending an email only if a value changes or a new issue is detected.


Posted

in

,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.