LibreNMS dashboard showing system metrics with graphs for CPU load, temperature, disk usage, and network traffic.

Synology SNMP Network Monitoring with LibreNMS Docker

Posted

Updated

Afterword

Thank you for reading!

Hope this tutorial was helpful to anyone looking to deploy an NMS to monitor devices, be it for personal home or business use

As of now, I have a production LibreNMS installed precisely as written in this tutorial, ready to alert our telco's NOC department when a monitored business line is suffering from downtime

What follows are my thoughts and experiences

Why Docker?

Packaged Web Server

Go through LibreNMS's installation documentation (opens in a new tab), and you will be expected to set up a web server (nginx or Apache), RRD, memcached and MariaDB on the host, by yourself, before we even begin to install LibreNMS

This tutorial was written when I was still new to Terminals and Linux. Since then, I have already stepped up my installation to a 3-point distributed LibreNMS setup

The best part? I am still using Docker containers

Using jarischaefer's image has helped a great deal, as it already includes the web server, RRD, and memcached installed and working properly. Thank you, jarischaefer!

Multiple Containers in a Single Host

Using Docker also has its other merits. Looking at my tutorial screenshots, you can see that I am doing a fresh test install of MariaDB/LibreNMS under mariadb-test/librenms-test on different ports

What this means is that you can actually run more than one LibreNMS/MariaDB container on the same host

This 'host' can be a machine (Server, Computer & Laptop), Synology NAS (this tutorial) or a Virtual Machine

If you are here, you've probably seen the rise of Docker/Kubernetes/Stacks, etc

With Docker, we can deploy X number of Containers with different settings (depending on your host performance)

Taking this tutorial, for example, I could set up:

x1 LibreNMS-1 running on port 8668 x1 MariaDB-1 for Libre8668

and another

x1 LibreNMS-2 running on port 8669 x1 MariaDB-2 for Libre8669

All running on one host (Synology), and still have room to spare for other containers

One Point of Failure?

Whether you would want this setup or not is entirely up to your budget, organisation, policies, performance and the number of SNMP devices you wish to monitor

Home Use

  • Tighter Budget or use what is already available
  • Very narrow WAF (Wife Acceptance Factor) range to play with ;)
  • Works best with x1 Server or x1 NAS capable of running Docker

Homelabbers

  • You are probably running some crazy stuff already like netdata, Prometheus, Grafana, ELK
  • Spin a VM up just for LibreNMS/MariaDB
  • Or, since we are using Docker, run it on another Debian/Linux host to save some vCPU

SMBs/Enterprises

You might not even be here in the first place :) If you are looking for an open-source solution, reach out to the LibreNMS team for professional support. Or donate to the team once you have set up your NMS systems

You will most probably NOT want to use this tutorial to deploy LibreNMS in a production environment

Deploying their official instructions will give you automatic updates and not rely on a 3rd party Docker Image

If you still want to deploy via Docker, use LibreNMS's official Docker image (opens in a new tab); that way you can approach the community for support

Planning & Setting ahead

If you are new to all of this and just starting out (which we all do at some point), it is very important that you take some time to plan ahead and also know what to expect

Networking

Get your server/NAS properly communicating with other devices first!

Local Networks

Home / Homelab environments are usually local networks. If you have VLANs, make sure you've properly configured inter-VLAN routing between them. Complicated word; it just means configure your firewall/switch to allow packets from one VLAN to another VLAN. Period.

Remote & VPNs & Routers

Usually recommended to set up VPN at the router level, so that your devices behind the router can communicate with a remote server via VPN without setting up a VPN client

Home / Testing Use

If you want to see what LibreNMS or SNMP, in general, has to offer, following this tutorial as written with minimum hardware will most definitely work

  • Hardware

    • A server (or NAS with Docker capabilities)
  • Device to monitor

    • The server itself that runs LibreNMS

Production Use

"Production"? It just means serious, non-testing, stable working environments. However, whether you want to use this for home or business, it doesn't matter. You will need to properly set up your systems and already have a basic/firm knowledge of networking.

As written in the post, most problems happen with networking itself, not the installation of LibreNMS via Docker, with containers being easy to deploy

Some tips & hints

  • Resist the need to upgrade every time! Read the changelog for major changes/updates that are relevant to your system/setup before upgrading
  • Use a fixed-version image in your containers to prevent problems caused by updates. If a hardware failure happens, your saved Docker run commands will most definitely work again. But if you were to use the latest tag, your previous Docker run commands, configurations/settings might not be compatible with the latest image, as compared to your initial configuration (say, 6months to a year ago)
  • Eg: Use a stable fixed tag MySQL/MariaDB image rather than the latest tag

Set, Analyse & Forget

During my initial successful setup, it became a daily routine to check LibreNMS by opening the mobile myLibreNMS app. Set up your notifications/alerts properly, and you won't need to visit the LibreNMS GUI as much (or maybe deep down I want something to happen...?)

Other than waiting on the graphs to fill and producing some eye candy, monitoring my devices did help me in the following:

Alert when a device goes down

  • When one of the APs at home goes down due to someone switching it off and forgetting to turn it back on, resulting in poor home Wi-Fi reception

    • Alert/notification kicks in and provides instructions to family members to switch on the Access Point... all while I'm overseas ✈️

Alert when a business line goes down

  • Whenever a business line is down for 30 minutes, an email is automatically sent to the NOC department, with an internal company email sent to notify staff about the imminent downtime. Recovery email gets sent to notify NOC and staff that the line is back up

Alert when your storage is almost full

  • For those sensitive Linux systems before havoc sets in

Re-evaluate whether your device is having a rough/tough time

  • Temperatures
  • CPU, RAM, Storage
  • UPS load

Discourse Memory on DigitalOcean Droplet Swap

Comments & discussion

Comments and replies are hosted on the jasonloong.com forum.

View discussion

Loading the latest forum activity…

Title:Synology SNMP Network Monitoring with LibreNMS Docker
Excerpt:Tutorial for installing LibreNMS (Docker) in Synology
Posted On:9 December 2017
Updated On:20 September 2026