smartmontools

Monitor and analyze hard drive SMART health status and diagnostics

brewmacoslinux
Try with needOr install directly
Source

About

SMART hard drive monitoring

Commands

smartctlsmartd

Examples

Display SMART information for a specific drive$ smartctl -a /dev/sda
Enable SMART monitoring on a drive and run a quick self-test$ smartctl -s on -t short /dev/sda
Show overall health status and potential issues$ smartctl -H /dev/sda