Monitoring disk health with smartd and a webhook
Get a message before the disk dies, not after.
smartd can run any command on a warning. A short script turns that into a chat message.
DEVICESCAN -a -o on -S on -s (S/../.././02|L/../../6/03) -m root -M exec /usr/local/bin/smart-notifyLong tests on Saturday nights, short tests every night at two.