Configuration
Install:
# cd /usr/ports/sysutils/smartmontools # make install clean
Configure:
Edit /usr/local/etc/smartd.conf
DEVICESCAN -a -m root
On some of my hosts smartd failed to start (DEVICESCAN does not work). In this case you need to specify the disks. If you have four disks, replace the line above with:
/dev/ada0 -a -m root /dev/ada1 -a -m root /dev/ada2 -a -m root /dev/ada3 -a -m root
Add to /etc/rc.conf
# Enable smartd smartd_enable="YES"
Start smartd
# service smartd start
Now you will be emailed when any problems with SMART are detected.
Checking current SMART values
# smartctl -A /dev/ada0
Check smartcl man page for more information. You can run SMART self test with this tool and more...
I am learning a lot from here thanks