How to setup SMART hard disk monitoring in OpenBSD
Enable SMART at boot. Add the following to /etc/rc.local
.
echo -n ' smartenable'; /sbin/atactl /dev/wd0c smartenable
Check status every hour. On error a mail is sent to root mail account. Add the following to /var/cron/tabs/root
.
# do smart status check
0 * * * * /sbin/atactl /dev/wd0c smartstatus >/dev/null
Test ./sysutils/smartmontools
to automate smart management.
TBD.