Monitoring S.M.A.R.T. on Linux

Use smartmontools to read the health status of your hard drives directly via the console and set up automated alerts.

1

Install smartmontools

Install the package using your distribution's standard package manager:

Debian / Ubuntu
apt-get update apt-get install smartmontools
CentOS / AlmaLinux
yum install smartmontools
2

Read S.M.A.R.T. Data

First, identify your drives using lsblk. Then, perform the check (replace /dev/sda with your actual drive):

Retrieve full report
smartctl -a /dev/sda

Overall Assessment

Look for: SMART overall-health self-assessment test result: PASSED.



If the line shows FAILED, the drive's internal logic has already detected a critical defect.

Critical Attributes

  • Reallocated_Sector_Ct: Value > 0 means the drive is already using spare sectors.
  • Current_Pending_Sector: Unstable sectors waiting to be remapped.
  • Offline_Uncorrectable: Critical issues during read/write operations.
3

Email Notifications

Configure the smartd daemon to monitor your drives in the background:

Edit configuration
nano /etc/smartd.conf

Add a line for each drive with your email address:

Entry in smartd.conf
/dev/sda -a -m [email protected] /dev/sdb -a -m [email protected]

Enable and start the service:

Start service
systemctl enable smartd && systemctl start smartd

Defective Drive Detected?

If smartctl reports errors, we will arrange a free replacement immediately.

Ticket in PowerPanel