How to Install Netdata on Your Synology NAS

How to Install Netdata on Your Synology NAS

Netdata is distributed, real-time, performance and health monitoring for systems and applications. It is a highly optimized monitoring agent you install on all your systems and containers. Netdata provides unparalleled insights, in real-time, of everything happening on the systems it runs on (including web servers, databases, applications), using highly interactive web dashboards. It can run autonomously, without any third party components, or it can be integrated to existing monitoring toolchains (Prometheus, Graphite, OpenTSDB, Kafka, Grafana etc). Netdata is fast and efficient, designed to permanently run on all systems (physical & virtual servers, containers, IoT devices), without disrupting their core function. Netdata is free, open-source software and it currently runs smoothly on Synology NAS, Linux, FreeBSD, and MacOS. Are you tired of complicated guides? Do you want something quick and easy? Well today I will teach you how to install Netdata on your Synology NAS in less than 30 seconds directly through the Task Scheduler option. It’ll be over in a couple of seconds and it’s essentially child’s play. No terminal required for the installation.

💡Note: This guide works perfectly with the latest Netdata v1.47.3 release.

  • STEP 1

Please Support My work by Making a Donation.

  • STEP 2

Install Container Manager via Synology “Package Center”. If you run an older DSM version (under 7.2), search for Docker instead of Container Manager.

Download Container Manager Synology Docker

  • STEP 3

Go to File Station and open the docker folder. Inside the docker folder, create one new folder and name it netdata. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Netdata Synology NAS Set up 1 new 2024

  • STEP 4

Now create three new folders inside the netdata folder that you created at STEP 3 and name them cache, config, data. Follow the instructions in the image below.
Note: Be careful to enter only lowercase, not uppercase letters.

Netdata Synology NAS Set up 2 new 2024

  • STEP 5

Right click on the netdata folder that you have previously created at STEP 3 then click Properties. Follow the instructions in the image below.

Netdata Synology NAS Set up 3 new 2024

  • STEP 6

Go to the Permission tab then click Advanced options. From the drop-down menu choose “Make inherited permissions explicit“. Follow the instructions in the image below.

Netdata Synology NAS Set up 4 new 2024

  • STEP 7

Select Everyone then click the Edit tab. Follow the instructions in the image below.

Netdata Synology NAS Set up 5 new 2024

  • STEP 8

Check all Read and Write Permissions. Click Done. Follow the instructions in the image below.

Netdata Synology NAS Set up 6 new 2024

  • STEP 9

After you click Done on STEP 8, check “Apply to this folder, sub-folders and files“. Click Save. Follow the instructions in the image below.

Netdata Synology NAS Set up 7 new 2024

  • STEP 10

Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the image below.

Netdata Synology NAS Set up 8 new 2024

  • STEP 11

Once you click on User-defined script, a new window will open. Follow the instructions below:

  1. General: In the Task field type in “Netdata“. Uncheck the “Enabled” option. Select root User.
  2. Schedule: Select Run on the following date then select “Do not repeat“.
  3. Task Settings: Check “Send run details by email“, add your email then copy paste the code below in the Run command area. After that, click OK.
docker run -d --name=netdata \
-p 19999:19999 \
-v /proc:/host/proc:ro \
-v /sys:/host/sys:ro \
-v /var/run/docker.sock:/var/run/docker.sock:ro \
-v /volume1/docker/netdata/config:/etc/netdata \
-v /volume1/docker/netdata/data:/var/lib/netdata \
-v /volume1/docker/netdata/cache:/var/cache/netdata \
-e PUID=1026 \
-e PGID=100 \
--cap-add SYS_PTRACE \
--security-opt apparmor=unconfined \
--restart always \
netdata/netdata

Note: Before you paste the code above in the Run command area below, change the value numbers for PUID and PGID with your own values. (Follow my step by step guide on how to do this.)

Netdata Synology NAS Set up 9 new 2024

  • STEP 12

After you click OK on STEP 11 a new warning pop up window will open. Click OK.

Netdata Synology NAS Set up 10 new 2024

After you click OK, type in your DSM Password then click Submit. Follow the instructions in the image below.

Synology Task Scheduler Confirm Admin Password

  • STEP 13

After you click Submit on STEP 12, select your “Install Netdata” Task then click the “Run” tab. You will be asked to run Install Netdata – click OK. Follow the instructions in the image below.

Netdata Synology NAS Set up 11 new 2024

  • STEP 14

Go back to STEP 1 or you will deal with karma 🙂

  • STEP 15

The installation process can take up to a few seconds. It will depend on your Internet speed connection. Now open your browser and type in http://Synology-ip-address:19999/

Netdata Synology NAS Set up 5 2023

You can also easily monitor your Synology NAS RAM and CPU consumption, as well as other parameters with Netdata. In addition to this, Netdata allows you to monitor the same parameters of other Docker containers installed on your Synology NAS, all in real time.

Netdata Synology NAS Set up 6 2023

  • STEP 16

If you want to remove Netdata from your NAS, just delete the netdata docker container, the netdata image and the netdata folder. Once you create the netdata folder in your main docker folder, you can’t delete it manually. As a workaround, follow the instructions below to delete the netdata folder.

  • STEP 17

Go to Control Panel / Task Scheduler / Create / Scheduled Task / User-defined script. Follow the instructions in the image below.

Netdata Synology NAS Set up 12 new 2024

  • STEP 18

Once you click on User-defined script, a new window will open. Follow the instructions below:

  1. General: In the Task field type in “Remove Netdata Folder“. Uncheck the “Enabled” option. Select root User.
  2. Schedule: Select Run on the following date then select “Do not repeat“.
  3. Task Settings: Check “Send run details by email“, add your email then copy paste the code below in the Run command area. After that, click OK.
rm -r /volume1/docker/netdata

Netdata Synology NAS Set up 13 new 2024

  • STEP 19

After you click OK on STEP 18 a new warning pop up window will open. Click OK.

Netdata Synology NAS Set up 14 new 2024

After you click OK, type in your DSM Password then click Submit. Follow the instructions in the image below.

Synology Task Scheduler Confirm Admin Password

  • STEP 20

After you click Submit on STEP 19, select your “Remove Netdata Folder” Task then click the “Run” tab. You will be asked to run Remove Netdata Folder – click OK. Follow the instructions in the image below.

Netdata Synology NAS Set up 15 new 2024

Enjoy Netdata!

🆘TROUBLESHOOTING

If you encounter issues by using this container, make sure to check out the Common Docker issues article.

Note: If you want to run the Netdata container over HTTPS, check How to Run Docker Containers Over HTTPS. In order to make Netdata work via HTTPS, it’s mandatory to activate WebSocket.

Note: Can I run Docker on my Synology NAS? See the supported models.
Note: How to Back Up Docker Containers on your Synology NAS.
Note: Find out how to update the Netdata container with the latest image.
Note: How to Free Disk Space on Your NAS if You Run Docker.
Note: How to Schedule Start & Stop For Docker Containers.
Note: How to Activate Email Notifications.
Note: How to Add Access Control Profile on Your NAS.
Note: How to Change Docker Containers Restart Policy.
Note: How to Use Docker Containers With VPN.
Note: Convert Docker Run Into Docker Compose.
Note: How to Clean Docker.
Note: How to Clean Docker Automatically.
Note: Best Practices When Using Docker and DDNS.
Note: Some Docker Containers Need WebSocket.
Note: Find out the Best NAS Models For Docker.
Note: Activate Gmail SMTP For Docker Containers.

This post was updated on Thursday / October 3rd, 2024 at 5:17 AM