Skip to content

Synology DSM

This page gets Collimo reading your Synology NAS over SNMPv3.

What Collimo reads: model, DSM version, uptime, CPU, memory and temperature; whether DSM says the system, its power supply and its fans are healthy; every drive's status, health and temperature; every volume's size and use, and every storage pool's status. What it can't: it changes nothing, and it can't sign in to DSM or open any shared folder.

Collimo uses SNMPv3, the version of SNMP with a password and encryption. The SNMP user is not a DSM account: it can't sign in, it needs no administrator rights and no 2-step verification, and it can only read.

Turn on SNMPv3

In DSM, go to Control Panel → Terminal & SNMP → SNMP:

  1. Tick Enable SNMP service.
  2. Untick SNMPv1, SNMPv2c service, unless something else on your network still needs it.
  3. Tick SNMPv3 service. User name collimo.
  4. Protocol SHA, with a password of at least 8 characters and no colon (:).
  5. Tick Enable SNMP privacy: protocol AES, with a different password of at least 8 characters.
  6. Click Apply.

No colon in the authentication password

Collimo keeps both passwords in one value, joined by a colon. A colon inside the first one would split it in the wrong place.

Why SNMP, and not DSM's own sign-in?

DSM shows disk and volume health only to administrators. Reading it through DSM's web sign-in would mean an administrator account with 2-step verification turned off, kept in a container. The SNMPv3 user sees the same health and can't do anything else.

Enter it in the setup wizard

On the wizard's What you have page, set Synology DSM to the number you have. On its page:

  1. Name: what you call it, such as ds920.
  2. Address: the NAS's name or IP address, without https://: 192.168.1.30.
  3. SNMPv3 user: collimo.
  4. Authentication password and Privacy password: from steps 4 and 5.
  5. Authentication: SHA, or MD5 if you chose MD5 in DSM. Privacy: AES, or DES if you chose DES.
  6. Click Test.

The wizard's Synology DSM page: name, address, SNMPv3 user, the two passwords, and the protocols

When it works you see ✓ Connected: and what it found, such as 2 volumes, 4 disks, all healthy.

The wizard won't let you download your settings while a password is shorter than 8 characters or the authentication password has a colon.

Editing the stack by hand

The secret is both passwords with a colon between them. Write any $ as $$.

SOURCE_4=synology 192.168.1.30 name=ds920 user=collimo
SOURCE_4_SECRET=<authentication password>:<privacy password>

If you chose MD5 or DES in DSM, add auth=md5 or priv=des to the end of the SOURCE_n line.

One Synology per slot: a second one takes its own slot, even with the same user. See What one slot holds.

Settings → Add a source writes the first line for you. See Every variable.

Set up before SNMPv3? Move it over

Collimo used to sign in to DSM's web interface as an administrator. A line like synology https://192.168.1.30:5001 is now refused, and Settings → Sources says why. Turn on SNMPv3 as above, change the line to the NAS's address without https:// and the port, set user= to the SNMP user, and put both passwords in the secret. Then delete the old administrator account in DSM: Collimo no longer needs it.

Where it shows up

The NAS gets a panel on the Storage tab. Settings → Sources lists it as polling; for the first minute it says waiting for first poll.

The Storage tab, with TrueNAS, Synology and QNAP panels

It alerts on:

  • a storage pool DSM reports as degraded or crashed, or being repaired;
  • a drive DSM flags as crashed, or whose health is warning, critical or failing;
  • a volume nearly full (90% is a warning, 95% is critical);
  • a power supply or fan that DSM says has failed;
  • a drive whose bad sectors or reconnects went up. That warning stays for a week after the last rise.
Why doesn't a drive with bad sectors warn all the time?

Many working drives have one or two old bad sectors and run for years. The count is shown in the disk table, and Collimo warns when it rises, which is what a failing drive does. A count that drops means the drive in that bay was replaced, and starts again from there.

Why does a storage pool show as its own row?

SNMP lists the storage pools and the volumes separately, and doesn't say which volume is on which pool. With one pool, its status is every volume's. With several, each pool gets a row of its own with its status and no size, so a degraded pool is still seen and its space isn't counted twice.

Pool layout, for adding disks

SNMP doesn't report a storage pool's RAID type (SHR, RAID 5 and so on) or its disks' sizes, so the add disks what-if has no layout for a Synology. The volume forecasts still work. Collimo leaves the layout out rather than guess.

See How many fit and what if.

If something's wrong

The Docker host must reach the NAS on UDP port 161. Firewalls often allow TCP and block UDP.

What you see What to do
no answer from ...; is SNMPv3 on, and UDP 161 reachable? Check steps 1 and 3, and that UDP 161 is open from the Docker host. DSM's own firewall may need a rule for SNMP.
Synology refused SNMPv3: the agent does not know user "collimo" Check the user name in step 3.
... wrong authentication passphrase, or the agent does not use SHA Check the password, or add auth=md5 if you chose MD5.
... wrong privacy passphrase, or the agent does not use AES Check the privacy password, or add priv=des if you chose DES.
the authentication passphrase arrived as N characters; SNMPv3 passphrases are at least 8 Usually a $ in the stack that wasn't written $$.
a Synology is read over SNMPv3 now, not DSM's web API The line is from before SNMPv3. See Set up before SNMPv3? above.
Synology: the agent answered but has no Synology MIB; is this a Synology? The address points at another device.

See Troubleshooting for more.