How to Set Up Scrutiny With Docker for Drive Health Monitoring

17 min read

,
Scrutiny web dashboard titled Drive health at a glance, showing six hard drive and SSD cards with S.M.A.R.T status Passed, temperature, capacity and powered-on time

A failing drive rarely dies without warning. Reallocated sectors creep up, read errors start appearing and the temperature runs a little hotter than its neighbours, often well before the drive gives up. The trouble is that smartctl only shows you today’s numbers, and smartd only speaks up once something has already crossed a line.

Scrutiny turns those numbers into a drive health dashboard you can open in a browser. It runs smartctl on a schedule, keeps the history of every SMART attribute, flags the ones that matter using real-world failure data from Backblaze, and sends an alert to your phone, chat app or inbox when a drive starts to look bad. You can set up Scrutiny with Docker in a few minutes per server, with one container and one Compose file.

Use the omnibus container if all your drives are on one machine. For a NAS and a separate server, run a collector on each and send their readings to one dashboard. The examples below use Scrutiny v0.10.0.

What Scrutiny adds on top of smartd

Scrutiny is not a replacement for smartmontools. It uses smartctl under the hood, so anything smartctl can read, Scrutiny can show. What it adds is memory, context and a screen you can glance at.

Diagram of what Scrutiny adds on top of smartd: it uses smartctl under the hood and runs it on a schedule, stores every SMART attribute over time with trend charts, highlights the critical attributes using real-world failure data from Backblaze, and shows a web dashboard plus an alert to your phone, chat app or inbox when a drive starts to look bad. Scrutiny is not a replacement for smartmontools and does not run self-tests; keep running scheduled self-tests with smartd and keep your backups current
Image: Techzei
smartctl and smartd aloneScrutiny
InterfaceCommand line and emailWeb dashboard with a page per drive
HistoryCurrent values onlyEvery attribute stored over time, with trend charts
Which attributes matterAll shown equallyCritical attributes highlighted, the rest hidden by default
Failure thresholdsManufacturer thresholds onlyManufacturer thresholds plus Backblaze failure rates
Several serversConfigure each machine separatelyOne dashboard, a small collector on each machine
AlertsEmail or a scriptEmail, ntfy, Gotify, Discord, Telegram, Slack, webhooks, scripts and more

The project describes itself as a work in progress with some rough edges, and that is fair. It does not run self-tests for you, and it is a monitoring tool rather than a fix. Keep running scheduled self-tests with smartd and keep your backups current; Scrutiny’s job is to make the early warning signs impossible to miss.

What you need before you start

  • A Linux machine with Docker and the Docker Compose plugin, with the drives you want to watch attached directly. Official Docker images are published for amd64 and arm64. If you are still choosing hardware, our home server or NAS guide covers the basics.
  • Drives that report SMART data. SATA and SAS drives, NVMe SSDs and many USB enclosures work. Some RAID controllers pass SMART data through and some do not.
  • About 20 minutes for the first server, plus five minutes for each extra machine.
  • Optional: an ntfy topic, Gotify server, Telegram bot or SMTP account for alerts.

If you have never looked at SMART data before, read our guide to SMART monitoring with smartctl and smartd first. It explains what the attributes mean and how to schedule self-tests, which Scrutiny does not do for you.

Step 1: List your drives with smartctl

Docker containers cannot see your drives unless you pass each one in, so start by finding out exactly which devices exist. Scrutiny detects drives with smartctl --scan, and the project recommends running the same command on the host first:

sudo apt install smartmontools
sudo smartctl --scan

You will get one line per drive, something like this:

/dev/sda -d sat # /dev/sda [SAT], ATA device
/dev/sdb -d sat # /dev/sdb [SAT], ATA device
/dev/nvme0 -d nvme # /dev/nvme0, NVMe device

Note every device path. For NVMe drives, use the controller (/dev/nvme0) rather than the namespace (/dev/nvme0n1); Scrutiny’s docs call this out because passing the namespace is a common reason NVMe drives show no data. If a drive behind a RAID card shows up as /dev/bus/0 or similar, pass that path too. Scrutiny’s collector needs smartctl 7 or newer, so check with smartctl --version on older systems.

Linux device names such as /dev/sda can change between reboots. Scrutiny tracks each drive by its WWN, a unique hardware ID, so its history stays attached to the right drive even if the name moves. Only the Compose file cares about names.

Step 2: Choose omnibus or hub and spoke

Scrutiny has three parts: a collector that runs smartctl, a web app and API, and an InfluxDB time-series database that stores the history. How you deploy them depends on how many machines have drives.

LayoutImagesBest for
Omnibusscrutiny:v0.10.0-omnibus (web, collector and InfluxDB in one container)One server with all the drives
Hub and spokescrutiny:v0.10.0-web plus influxdb:2.8 on the hub, scrutiny:v0.10.0-collector on each machineSeveral servers reporting to one dashboard
Collector binaryscrutiny-collector-metrics run by cron or a systemd timerHosts without Docker, such as a Proxmox VE node

You can mix them. A common home lab setup runs the omnibus image on the main server, then points a collector binary on a Proxmox host at it. The diagram from Scrutiny’s hub and spoke guide shows that arrangement: the web app and InfluxDB in Docker on one side, and a collector on the storage machine sending its data across.

Scrutiny hub and spoke diagram: a Docker host running the Scrutiny web app and InfluxDB, receiving data from a collector command running on a NAS full of hard drives
Image: Scrutiny

Start with omnibus on one machine. Adding more collectors later does not require any change to the first server.

Step 3: Write the Docker Compose file

Create a folder for Scrutiny’s config and database, then a compose.yaml inside it:

mkdir -p ~/scrutiny/config ~/scrutiny/influxdb
cd ~/scrutiny
nano compose.yaml

This file follows the official omnibus example, pinned to a release instead of a moving tag, with NVMe support added. Replace the devices list with the paths from Step 1:

services:
  scrutiny:
    image: ghcr.io/analogj/scrutiny:v0.10.0-omnibus
    container_name: scrutiny
    restart: unless-stopped
    cap_add:
      - SYS_RAWIO     # lets smartctl read SATA/SAS SMART data
      - SYS_ADMIN     # only needed for NVMe drives
    ports:
      - "8080:8080"   # web dashboard
    volumes:
      - /run/udev:/run/udev:ro
      - ./config:/opt/scrutiny/config
      - ./influxdb:/opt/scrutiny/influxdb
    devices:
      - "/dev/sda"
      - "/dev/sdb"
      - "/dev/nvme0"

Each line has a job. /run/udev gives the collector the device metadata it needs. SYS_RAWIO lets smartctl talk to drives, and SYS_ADMIN is required for NVMe; leave it out if you have no NVMe drives. The two volumes keep Scrutiny’s settings and the InfluxDB history on the host. Without the influxdb volume, a container rebuild can leave Scrutiny unable to authenticate to its own database, and the history is lost.

The official example also publishes port 8086, InfluxDB’s admin interface. It is left out here on purpose. Scrutiny sets InfluxDB up on first start with a documented default login (admin / password12345), so exposing 8086 to your network gives anyone who knows that default a way in. If you do want the InfluxDB UI, set your own init_username and init_password before the first start, as shown in Step 9.

Scrutiny’s README warns against latest tags because they can update the image without warning. Pinning v0.10.0-omnibus means upgrades happen when you change the tag. v0.10-omnibus follows patch releases if you prefer.

Step 4: Start Scrutiny and run the first scan

Bring the container up and watch the log for a minute:

docker compose up -d
docker compose logs -f scrutiny

On first start, Scrutiny sets up InfluxDB, writes the generated API token to config/scrutiny.yaml, and runs the collector once. Open http://SERVER-IP:8080 and every drive it found should appear as a card showing its SMART status, temperature, capacity and power-on time.

After that, the collector runs once a day at midnight. To refresh the data right away, for example after adding a drive, trigger it by hand:

docker exec scrutiny /opt/scrutiny/bin/scrutiny-collector-metrics run

Click any card to open its details page. By default it lists only the critical attributes, the handful most linked to drive failure, alongside the model, serial number, firmware and WWN.

Scrutiny Drive Details page for a WDC 12.73 TB hard drive, listing five critical SMART attributes such as Reallocated Sectors Count and Current Pending Sector Count, all marked Passed with a failure rate column
Image: Scrutiny

If a drive is missing, it was either not passed into the container or smartctl inside the container cannot read it. The troubleshooting section below covers both.

Step 5: Read the drive details page

The attribute table is where Scrutiny earns its place. Each row shows the attribute’s current value, its worst recorded value, the manufacturer threshold, the ideal direction (whether lower or higher is better) and, where Backblaze has data, the annual failure rate linked to the current value. The History column draws a small chart, so a slow climb is visible at a glance.

Click Show all attributes to see everything the drive reports. In the example below, Spin-Up Time is marked WARN because its value falls in a range Backblaze links to an 11% failure rate, even though the manufacturer threshold is nowhere near triggered.

Scrutiny Drive Details page with all 18 SMART attributes shown, including Spin-Up Time marked WARN with an 11% failure rate while the other attributes are marked Passed, and history bars for each attribute
Image: Scrutiny

Raw values are where most confusion starts. Some attributes pack several numbers into one raw value, and some Seagate drives report raw values that look alarming but are normal for that firmware. Scrutiny’s docs note that the proper fix for wrong Seagate values is smartmontools support for the drive, not a Scrutiny setting. When something looks odd, compare against smartctl -x on the host before you panic.

How Scrutiny decides a drive is failing

Scrutiny uses two checks. The first is plain SMART: if the drive itself says an attribute has failed, Scrutiny marks it failed too. The second uses failure statistics Backblaze has published from the drives in its data centres. If an attribute’s value is linked to a high failure rate in that data, Scrutiny can mark the drive as failed even while SMART still says it passed.

Backblaze’s analysis explains why that second check is useful. When it began collecting daily SMART snapshots from about 40,000 drives, it found five attributes that reliably signalled trouble: 5 (Reallocated Sectors), 187 (Reported Uncorrectable Errors), 188 (Command Timeout), 197 (Current Pending Sectors) and 198 (Offline Uncorrectable). For attribute 187, drives with zero errors rarely failed, and the annual failure rate rose as the error count grew.

Backblaze bar chart for SMART 187 Reported Uncorrect showing annual failure rate rising as the number of uncorrected reads increases, from close to zero at 0 errors to well over 100 percent at 35 to 65 and 65 to 120 errors
Image: Backblaze

Two consequences are worth knowing. First, Scrutiny and other tools can disagree: hover over a Failed label to see whether the verdict came from SMART or from Scrutiny’s thresholds. Second, Scrutiny’s docs describe the failed status as historical: a drive that was marked failed can stay marked that way after the attribute settles, and the docs include a way to reset it. The settings in the next step let you choose which of the two checks counts.

Step 6: Tune the dashboard settings and name your drives

Click Settings at the top of the dashboard. Most options are cosmetic, such as theme, temperature unit and sort order, but four change how Scrutiny judges and reports drives:

  • Device Status – Thresholds: choose Smart to mark drives failed only on manufacturer thresholds, Scrutiny for the Backblaze-based thresholds only, or Both. If you get false alarms on a particular drive model, switching to Smart is the quick fix.
  • Notify – Filter Attributes: Critical sends alerts only for the critical attributes; All includes every attribute. Critical is the calmer choice for most homes.
  • Repeat Notifications: Always repeats the alert on every collector run while a problem persists; Only when the value has changed alerts again only when the number moves. The second stops a known bad drive from paging you every night.
  • Temperature Chart Duration: set it to a week or a month to spot cooling problems, such as a drive that runs hot every afternoon.
Graphic of the four Scrutiny dashboard settings that change how it judges and reports drives: Thresholds (Smart, Scrutiny or Both; switching to Smart is the quick fix for false alarms), Notify Filter Attributes (Critical is the calmer choice for most homes, or All), Repeat Notifications (Always, or only when the value has changed, which stops a known bad drive from paging you every night), and Temperature Chart Duration (a week or a month to spot cooling problems). Then give each drive a Friendly Name; from v0.10.0 notifications use it
Image: Techzei

Under Quirks, Discard SCT Temperature History is worth enabling if a drive’s temperature chart shows impossible spikes. It ignores the drive’s own temperature log, which the setting notes can be inaccurate on some drives, and keeps only the readings Scrutiny takes.

Next, give each drive a name you will recognise. Open a drive, click Settings on its details page, and fill in Friendly Name, for example Parity or Backup disk. From v0.10.0, the name is stored in Scrutiny’s database and notifications use it, which makes “Backup disk failing” much clearer than a serial number.

Step 7: Set up notifications

A dashboard only helps if you look at it. Scrutiny sends alerts through Shoutrrr, a library that turns a single URL into a message for ntfy, Gotify, Telegram, Discord, Slack, email and many other services. Create config/scrutiny.yaml if it does not exist (Scrutiny will already have written its InfluxDB token there after the first start, so add to it rather than replacing it):

notify:
  urls:
    - "ntfy://scrutiny:YOUR-PASSWORD@ntfy.example.com/homelab-disks?priority=high&tags=warning"
    - "smtp://alerts%40example.com:YOUR-APP-PASSWORD@smtp.example.com:587/?fromaddress=alerts@example.com&toaddresses=you@example.com"

Use one URL or several. The ntfy line works with the public ntfy.sh server (drop the username and password and use a long, random topic name) or your own ntfy server with a publish-only user. Our ntfy Docker setup walks through the topic permissions. Scrutiny’s current Shoutrrr version takes a username and password for ntfy rather than an access token. Usernames and passwords that contain special characters must be URL-encoded, so @ becomes %40, as in the email example. For Gotify, the format is gotify://gotify-host/token, and Telegram uses telegram://token@telegram?chats=@channel.

If you prefer environment variables, the hub and spoke guide sets the same thing with SCRUTINY_NOTIFY_URLS, a space-separated list. Restart the container, then send a test alert:

docker compose restart scrutiny
curl -X POST http://localhost:8080/api/health/notify

A test message should arrive within seconds. With ntfy, a Scrutiny alert lands like any other push notification, with the warning tag shown as an emoji.

Two ntfy push notifications on a phone, one with a warning emoji reporting a failed terminal command with exit code 1
Image: ntfy

Scrutiny sends three kinds of alert besides the test. SMART failures go out when a drive or attribute fails. Collector errors are sent when smartctl cannot read a drive, which often means a cable, controller or enclosure problem. Missed uploads, on by default, warn you when a drive stops reporting: Scrutiny learns the usual gap between uploads from the last three runs and alerts when the next one is more than 10% late. You can set the gap yourself instead, and switch alerts off for one drive using its scrutiny_uuid, the last part of its details page URL:

notify:
  upload_period: 24h        # matches the default daily collector run
  urls:
    - "ntfy://scrutiny:YOUR-PASSWORD@ntfy.example.com/homelab-disks"
devices:
  - scrutiny_uuid: 9a4d34b5-b2ee-51ef-8506-90eea09be417
    notifications:
      on_missed_upload: false   # a drive that often sleeps

If none of the built-in services fit, Scrutiny can run your own script instead and pass the details in environment variables such as SCRUTINY_FAILURE_TYPE, SCRUTINY_DEVICE_NAME, SCRUTINY_DEVICE_SERIAL and SCRUTINY_FRIENDLY_NAME.

Step 8: Add collectors on other machines and Proxmox hosts

Every extra machine only needs a collector pointed at your Scrutiny server. On a host that runs Docker, use the collector image with the same capabilities and device list as before, plus the server address and a host ID so its drives are grouped on the dashboard:

services:
  scrutiny-collector:
    image: ghcr.io/analogj/scrutiny:v0.10.0-collector
    container_name: scrutiny-collector
    restart: unless-stopped
    cap_add:
      - SYS_RAWIO
    volumes:
      - /run/udev:/run/udev:ro
    environment:
      COLLECTOR_API_ENDPOINT: "http://192.168.1.10:8080"
      COLLECTOR_HOST_ID: "nas-01"
      COLLECTOR_RUN_STARTUP: "true"
    devices:
      - "/dev/sda"
      - "/dev/sdb"

COLLECTOR_RUN_STARTUP makes the collector report as soon as it starts, so you can check it worked without waiting for midnight; the collector container otherwise sticks to its schedule.

A Proxmox VE host is better served by the standalone collector binary than by Docker on the hypervisor. Proxmox already installs smartmontools, so you only need the binary and a schedule. If you are new to Proxmox, our guide to install Proxmox VE covers the host basics. On the Proxmox shell, as root:

mkdir -p /opt/scrutiny/bin
wget -O /opt/scrutiny/bin/scrutiny-collector-metrics \
  https://github.com/AnalogJ/scrutiny/releases/download/v0.10.0/scrutiny-collector-metrics-linux-amd64
chmod +x /opt/scrutiny/bin/scrutiny-collector-metrics

# test run: should report the host's drives to the dashboard
/opt/scrutiny/bin/scrutiny-collector-metrics run --api-endpoint "http://192.168.1.10:8080" --host-id "pve-01"

Scrutiny’s manual install guide recommends comparing the file against the SHA-256 checksum on the release page before running it. Once the test run shows the drives on the dashboard, schedule it with crontab -e. A daily run keeps the history in step with the omnibus server:

0 1 * * * /opt/scrutiny/bin/scrutiny-collector-metrics run --api-endpoint "http://192.168.1.10:8080" --host-id "pve-01" >/dev/null 2>&1

Drives from each machine then appear on the dashboard under their host ID.

Scrutiny dashboard card grouped under a custom host id heading, showing a WDC 12.73 TB drive with status Failed, 36 degrees Celsius and 2 years powered on
Image: Scrutiny

Drives passed through to a VM, such as a TrueNAS or OpenMediaVault guest with its own HBA, should be monitored from inside that VM, because the Proxmox host can no longer see them.

Step 9: Keep Scrutiny secure and its data under control

  • Keep it on your LAN. Scrutiny has no login screen of its own. Reach it over a VPN such as Tailscale or WireGuard, or put it behind a reverse proxy with authentication. For a subpath such as /scrutiny, set web.listen.basepath in scrutiny.yaml.
  • Change the InfluxDB defaults on new installs. Add init_username, init_password and token under web.influxdb in scrutiny.yaml (or the matching SCRUTINY_WEB_INFLUXDB_* variables) before the first start. On an existing install, change the admin password in the InfluxDB UI; Scrutiny only uses the token after setup.
  • Do not over-collect. Scrutiny downsamples history automatically: daily data for 15 days, then weekly, monthly and yearly buckets kept forever. The project warns that running collectors every 15 minutes multiplies the number of data points the browser has to draw, which can make the charts slow. Daily or a few times a day is plenty for SMART trends. On the omnibus and collector images, COLLECTOR_CRON_SCHEDULE changes the schedule.
  • Back up both folders. config holds scrutiny.yaml (with the InfluxDB token and alert URLs) and scrutiny.db; influxdb holds the history. Stop the container before copying for a clean snapshot.
  • Upgrade on purpose. Read the release notes, change the version tag in compose.yaml, then run docker compose pull && docker compose up -d. Use release tags rather than the nightly ones, which are built every night from the main branch and, as Scrutiny’s docs put it, can let bugs sneak through.

Troubleshooting

  • A drive is missing from the dashboard: check that it appears in smartctl --scan on the host and is listed under devices. Then run docker exec scrutiny smartctl --scan to see what the container can see.
  • NVMe drive shows no data: add SYS_ADMIN and pass the controller, /dev/nvme0, not /dev/nvme0n1.
  • USB drive is not read correctly: many USB bridges need a device type. Add it in config/collector.yaml, for example type: 'sat' for that device, and check the smartmontools list of supported USB devices.
  • “smartctl returned an error code (2)”: smartctl could not open the drive. Sleeping drives in standby are a known cause; so are missing capabilities.
  • You want stable device paths: smartctl inside the container does not detect drives passed as /dev/disk/by-id, but you can map them to a name: /dev/disk/by-id/wwn-0x5000...:/dev/sda in the devices list.
  • “unauthorized” or “onboarding has already been completed” on start: the InfluxDB folder and the token in scrutiny.yaml no longer match, usually because a volume was not persisted. Scrutiny’s InfluxDB guide explains how to recover the token from the InfluxDB admin page.
  • A drive stays Failed after the problem is gone: Scrutiny’s docs give a short sqlite3 command, run inside the container, that clears the status so the next collector run can decide afresh.
  • Only some drives should be watched: list them under allow_listed_devices in collector.yaml, or set ignore: true on a single device.

My take

If you run more than a couple of drives, Scrutiny is one of the easiest upgrades you can make to your home server’s safety net. smartd tells you when a drive has crossed a manufacturer threshold, which is often too late to be useful. Scrutiny shows you the slow drift that comes first, and the Backblaze-based thresholds catch drives the manufacturer would still call healthy.

It is not a set-and-forget tool, though. Expect a few false alarms, especially from Seagate raw values or USB enclosures, and spend ten minutes choosing between the Smart, Scrutiny and Both thresholds once you see how your drives behave. Keep InfluxDB off your network, keep alerts on Critical with repeats only on change, and treat a warning as a reason to check your backups first and the drive second.

FAQ

Is Scrutiny free?

Yes. Scrutiny is open source under the MIT licence, and the Docker images and collector binaries are free to download from GitHub.

Does Scrutiny run SMART self-tests?

No. It collects the SMART data and test results that drives already report. Schedule short and long self-tests with smartd, and Scrutiny will show the results on the drive’s page.

Can Scrutiny wake sleeping drives?

It can, because each collector run asks every drive for its SMART data. If your drives spin down to save power, keep the collector to its default daily run rather than every few minutes. smartctl’s -n standby option skips a sleeping drive instead of waking it, and you can add it to metrics_smart_args in collector.yaml. Scrutiny does not treat a skipped drive as a failure, but it also does not upload, so switch off missed upload alerts for those drives.

Does Scrutiny work on Windows, Synology or Unraid?

Yes. The project publishes a Windows collector and install guides for Unraid, Synology and other NAS systems, alongside binaries for macOS and FreeBSD. Docker is the easiest route on Linux.

About the author