Skip to content

Scrutiny SMART Monitoring in Docker on a Synology NAS

Last updated on 16 October 2023

Please note if you are using DSM7.2 or higher you should use the Container Manager version of this guide from the menu.
This guide has reached the end of its updates as most people are now on the latest DSM update - This guide is correct as of 08/12/2023 however no further updates will be added.

Important or Recent Updates
Historic UpdatesDate
New guide published28/07/2022
AnalogJ has been busy notification settings updated05/08/2022
Small tweak to the collector.yaml section and also the compose file to ensure NVME cache drives are shown correctly18/08/2022
Added an extra section on how to secure the InfluxDB via environment variables19/01/2023
Compose version number removed and small wording amendments09/04/2023
Amended the path to save the compose file – this is for security, so the container has no access to the file contents.14/04/2023
Amended SSH section to line up with the latest version of the guide in the 7.2 section16/10/2023
Historic Updates

What is Scrutiny?

Scrutiny is a Hard Drive Health Dashboard & Monitoring solution, merging manufacturer provided S.M.A.R.T metrics with real-world failure rates.

Let’s Begin

In this guide I will take you through the steps to get Scrutiny up and running in Docker.

In order for you to successfully use this guide please set up your Docker Bridge Network first.

Scrutiny currently cannot be setup via the DSM Docker UI, so we will be using Docker Compose to get things up and running, this is not as complicated as it seems.

Getting our drive details

We need to get some details about our drives in order for Scrutiny to read their SMART data.

It’s time to get logged into your Diskstation via SSH, in this guide I am using Windows Terminal however the steps will be similar on Mac and Linux,

Head into the DSM Control Panel > Terminal & SNMP and then enable SSH service.

Open up ‘‘Terminal’

Now type ‘ssh’ then your main admin account username @ your NAS IP Address and hit Enter

ssh drfrankenstein@

You will then be asked to enter the password for the user you used you can either type this or right click in the window to paste (you won’t see it paste the info) then press enter.

Enter the login information for your main Synology user account, you will not be able to see the password as you type it. (If you are using a password manager right-clicking in the window will paste – you won’t be able to see it)

Now we are logged in we just need to do a single command to see our drives, note I am not prefacing this command with sudo as we don’t need the low level detail. You will see permission denied errors, but these can be ignored.

fdisk -l

The output you will see depends on the model NAS you own, the two examples below are from an 1821+ and an 1815+ which have 8 bays and the 1821+ has up to 2 NVMEs.

The 1815+ has 8 drives broken down from sda to sdh

The 1821+ has 8 drives broken down into SATA and NVME devices, sata1 to sata8 with the single nvme0n1.

Make note of the devices you see in your output as we will need them for the config file and compose.

Config Files and Folders

Next let’s create the folders the container will need. Head into FileStation and create a subfolder in the ‘docker’ share called ‘scrutiny’ and then within that another called ‘influxdb’ it should look like the below.

Next comes the config files, you can edit this file in a number of ways, but to keep the guide OS-agnostic we will be using the Synology Text Editor package which can be installed via Package Center.

Open up a new text document and paste one of the two code snippets below into it. Use the one that matches up with the way your drives are shown in the previous step (if you come across anything different let me know in the comments!)

Type 1

version: 1
  id: ""
  - device: /dev/sata1
    type: 'sat'
  - device: /dev/sata2
    type: 'sat'
  - device: /dev/sata3
    type: 'sat'
  - device: /dev/sata4
    type: 'sat'
  - device: /dev/sata5
    type: 'sat'
  - device: /dev/sata6
    type: 'sat'
  - device: /dev/sata7
    type: 'sat'
  - device: /dev/sata8
    type: 'sat'
  - device: /dev/nvme0n1
    type: 'nvme'
  - device: /dev/nvme1n1
    type: 'nvme'

Type 2

version: 1
  id: ""
  - device: /dev/sda
    type: 'sat'
  - device: /dev/sdb
    type: 'sat'
  - device: /dev/sdc
    type: 'sat'
  - device: /dev/sdd
    type: 'sat'
  - device: /dev/sde
    type: 'sat'
  - device: /dev/sdf
    type: 'sat'
  - device: /dev/sdg
    type: 'sat'
  - device: /dev/sdh
    type: 'sat'

You will need to edit the config file in line with the number of drives you had in the output earlier either adding or removing lines accordingly, including adding or removing the NVME drives.

Next you can save this file as ‘collector.yaml’ in the ‘/docker/scrutiny’ folder.

Notifications Config (optional)

This step is optional and depends on if you want to set up some notifications in case one of your drive has issues.

As of writing there are 14 different notification method, as you can imagine I cannot cover every single type in this guide, but this will get the config file in place for you to amend based on your preferences

Open up a new file Text Editor again, this time you need to copy and paste the full contents of the example config file located here

Scroll to the bottom of the file where you will see a number of config options for notifications. You will need to the remove the # from the ‘notify’ and ‘urls’ lines and then depending on which type of notification you decide to set up the # will need to be removed from the corresponding line.

The level of notification you receive (Critical or All Issues) can be set up in the WebUI once Scrutiny is up and running.

Removing the # from the required lines

Finally, save this file as ‘scrutiny.yaml’ into the /docker/scrutiny folder.

Docker Compose File

We will be using Docker Compose to set up the container. In a nutshell we will be creating a text file (YAML formatted) which tells Docker exactly how we want it set up.

Open up a new file in Text Editor again and copy the code below into it.

    container_name: scrutiny
      - SYS_RAWIO
      - SYS_ADMIN
      - "6090:8080" # webapp
      - "8086:8086" # influxDB admin
      - /run/udev:/run/udev:ro
      - /volume1/docker/scrutiny:/opt/scrutiny/config
      - /volume1/docker/scrutiny/influxdb:/opt/scrutiny/influxdb
      - /dev/nvme0n1:/dev/nvme0n1
      - /dev/nvme1n1:/dev/nvme1n1
      - /dev/sata1:/dev/sata1
      - /dev/sata2:/dev/sata2
      - /dev/sata3:/dev/sata3
      - /dev/sata4:/dev/sata4
      - /dev/sata5:/dev/sata5
      - /dev/sata6:/dev/sata6
      - /dev/sata7:/dev/sata7
      - /dev/sata8:/dev/sata8
    network_mode: synobridge
    restart: unless-stopped

As you can see the devices section contains all our drives, you will need to amend this again in line with the config file you created earlier. You will need to amend the paths each side of the : so they match, adding or removing drives accordingly including the NVMEs.

e.g., /dev/sata1:/dev/sata1 or /dev/sda:/dev/sda and so on.

In addition to this you will see in the ‘environment’ section three variables that will need to be updated as outlined below, these secure the database used by scrutiny.

SCRUTINY_WEB_INFLUXDB_TOKENenter a sting of characters you can use almost anything treat it like a password so a nice long string
SCRUTINY_WEB_INFLUXDB_INIT_USERNAMEThis can be anything you like

These 3 values are only required for the first ever setup – you can remove them once Scrutiny is up and running.

Once you have made the edits save this file as ‘scrutiny.yml’ in ‘/docker’

SSH and Docker-Compose

We are now on the final section, you can now log back into your NAS via SSH again.

Once you have logged in you will need to give 2 commands, you can copy and paste these one at a time — you will need to enter your password for the command starting with ‘sudo’

First we are going to change directory to where the scrutiny.yml is located, type the below and then press enter.

cd /volume1/docker

Then we are going to instruct Docker Compose to read the file we created and complete the set-up of the container. Again type or copy the below and press enter.

sudo docker-compose -f scrutiny.yml up -d

When the command has completed you should be able to see Scrutiny running in the list of containers in the Synology GUI.

You should now be able to access the Scrutiny WebUI by going to your NAS IP followed by port 6090


Sometimes it can take a few minutes before all your drives appear, as Scrutiny needs to obtain their information so don’t panic if it’s initially empty. You can now adjust settings for the UI and Notifications in the WebUI.

Buy Me a Coffee or a Beer

If you have found my site useful please consider pinging me a tip as it helps cover the cost of running things or just lets me get the odd beverage. Plus 10% goes to the devs of the apps I do guides for every year.

Published inDockerOther Tools 7.1Synology


    • Dr_Frankenstein Dr_Frankenstein

      Hey, it’s ‘admin’ ‘password12345’I am going to check the documentation on how we go about safely changing that to something more secure! I will update the guide ASAP.

    • Dr_Frankenstein Dr_Frankenstein

      I have done some reading since my first reply and raised a Feature request on the GitHub to help define a custom password on first setup. Assuming I have not missed something in the documentation. I can see how we go about securing the existing setup, so I will work through this tonight and should have the guide updated by the weekend. This will require setup of API keys etc.

  1. Marco Marco

    Hello, I followed all the steps and I have only 2 harddrives, however when the dashboard opens, I can only see one harddrive…Any idea of what I could have done wrong? Harddrives names are sda and sdb. Thanks

    • Dr_Frankenstein Dr_Frankenstein

      I would double-check that both the .yml files match up as a starter for 10. If they do you may want to delete the container and re-pull it again.

  2. The latest version of DSM seams not have synobridge, when I try to create container it will promot error below
    ERROR: for scrutiny Cannot start service scrutiny: network synobridge not found

    I deleted this line in yaml file, looks fine.

    • Dr_Frankenstein Dr_Frankenstein

      Hey, you skipped the bit towards the start of the guide, not to worry as the container will be OK on the default bridge.

    • Dr_Frankenstein Dr_Frankenstein

      Awesome, definitely OK for the link, I will get the notification section updated shortly!

  3. Roger Roger

    Hi Dr_Frankenstein,

    Two questions for you, I hope you’ll be able to help me with.

    Is there a way to add an expansion unit the Scrutiny? (Synology DX-1215)
    Is it possible to also monitor RAM modules?

    Also, FYI (and possibly edit on this webpage), I had to remove the line:
    “- /dev/nvme0n1:/dev/nvme0n1” from the docker-compose file to get Scrutiny to work.

    Thanks for all your awesome work and easy to follow guides!! I’ll buy you a couple of coffees 😉

    Warm regards,

    • Dr_Frankenstein Dr_Frankenstein

      Hey – I have made a small tweak to the sentences to make it clearer to add or remove the NVMEs

      You can be my Guinea Pig for the expansion unit as I don’t have one to test. Can you copy the output of the ‘fdisk -l’ command and share it on my pastebin – put the link here in the comments.

      Scrutiny can’t test RAM modules it’s purely disks.

        • Dr_Frankenstein Dr_Frankenstein

          Thanks for the paste – one question I didn’t ask was what model NAS do you have, so I can figure out which disks sit where 🙂

            • Dr_Frankenstein Dr_Frankenstein

              OK so it looks like these are you internal drives

              and these are you expansion unit

              so setup the compose file and the collector.yaml accordingly

              • Roger Roger

                Changed it in the collector.yml and in the scrutiny.yml. Did a sudo dock-compose and voilá… there they are! Just perfect!

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed. – writing Synology Docker Guides since 2016 – Join My Discord!