André Amorim

Crafting Web Experiences

//

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

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 -a -A /var/lib/smartmontools/smartd.attributelog

Apply Changes

Restart the service to activate the new logic:

systemctl restart smartmontools

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.


Published date:

Modified date: