Smart monitoring software

Hi I am looking for a Smart monitor software for linux (Ubuntu 20.04) in gui or cli, so I can see the health of my internal and external HDD, in one windows to see the status of all my hdd (46 pieces).
I recently discovered one external hdd with errors. I saw multiple times in a day that the “Plot Passed Filter” was frozen, although the Farm was synced.

Any suggestions?

For CLI, I use smartmontools.

It can be installed with:

sudo apt install smartmontools

and ran with:

sudo smartctl -a /dev/sda1

or to only look at a health report:

sudo smartctl -H /dev/sda1

But with 46 HDDs I would either make a script to perform daily scan, or look for a GUI based tool to monitor all your drives.


Here is a basic script for smart-scan.sh

#!/bin/bash
# Runs a health scan of attached storage devices

if ! [[ $EUID = 0 ]]; then
    echo "Please run this script with 'sudo'..."
    exit 1
fi

for drive in $(ls /dev/sd*[1-9])
do
    echo -en "$drive \t"
    smartctl -H $drive | grep "Health Status"
done

make it executable

chmod +x smart-scan.sh

Run it with:

sudo ./smart-scan.sh

Here is the output:

image

Note: Detailed reports are unavailable for USB attached drives.


See also:
https://help.ubuntu.com/community/Smartmontools

Which has some interesting tips.

2 Likes
1 Like