Monitoring SMART Data for your HDDs and SSDs

Monitoring SMART Data for your HDDs and SSDs

Since around 2014 I am running a NAS, Server whatever you want to call it. Since then I did not have a drive failure once. Actually, I never had a drive fail me yet, knock on wood.

I got interested in how these drives are doing. I was playing around with the SMART data but found that the CLI did not provide a good overview.

A little search on the internet and I found scrutiny. A sleek web interface that will show you all your SMART data. Here is mine:

scrutiny overview

As you can see I have quite a few drives running for a few years.

It's also possible to view the details of each drive. This view will show the most critical data.

scrutiny showing critical SMART attributes

And of course you can also look at all SMART attributes:

scrutiny showing all SMART attributes

If you want to set this up by yourself, I can recommend the linuxserver.io docker image. They provide excellent images for various software.

And if you are lazy, which you should be, here is my docker-compose.yaml for  copy and paste:

---
version: "2.1"
services:
  scrutiny:
    image: ghcr.io/linuxserver/scrutiny
    container_name: scrutiny
    cap_add:
      - SYS_RAWIO
      - SYS_ADMIN #optional
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Europe/Berlin
      - SCRUTINY_API_ENDPOINT=http://localhost:8080
      - SCRUTINY_WEB=true
      - SCRUTINY_COLLECTOR=true
    volumes:
      - ./config:/config
      - /run/udev:/run/udev:ro
    ports:
      - 8080:8080
    devices:
      - /dev/sda:/dev/sda
      - /dev/sdb:/dev/sdb
      - /dev/sdc:/dev/sdc
      - /dev/sdd:/dev/sdd
      - /dev/sde:/dev/sde
      - /dev/sdf:/dev/sdf
      - /dev/sdg:/dev/sdg
      - /dev/sdh:/dev/sdh
      - /dev/sdi:/dev/sdi
      - /dev/sdj:/dev/sdj
      - /dev/sdk:/dev/sdk
      - /dev/nvme0n1:/dev/nvme0n1
    restart: unless-stopped
docker-compose.yaml