LibreNMS-Dispatcher

LibreNMS-Dispatcher

Official

Docker app from hoody424's Repository

Overview

Dispatcher service sidecar for an existing LibreNMS container (for example librenms from A75G's repository). The official LibreNMS image does not poll devices on its own: polling and discovery run in at least one separate dispatcher container. This template runs that container from the same official image librenms/librenms with SIDECAR_DISPATCHER=1. Use the same appdata folder (/data) and the same database settings as your LibreNMS container, and start LibreNMS first. Redis is required (the dispatcher does not start without it), for example the Redis app from Community Apps. With several dispatchers, give each a unique DISPATCHER_NODE_ID and hostname. Check the result in LibreNMS under Settings - Pollers: the dispatcher shows up with its node ID and hostname.

LibreNMS Dispatcher for Unraid

Dispatcher service sidecar for an existing LibreNMS container. The official image librenms/librenms does not poll devices on its own: polling and discovery run in at least one separate dispatcher container (LibreNMS docker docs).

Template: librenms-dispatcher.xml, image: librenms/librenms (official), started with SIDECAR_DISPATCHER=1.

Setup

  1. Install and set up LibreNMS first, for example "librenms" from A75G's repository in Community Apps, and start it once: the dispatcher reads /data/.env, which the LibreNMS container creates.
  2. Have a Redis server, for example the Redis app from Community Apps. The dispatcher refuses to start without REDIS_HOST. Set the same Redis on the LibreNMS container (REDIS_HOST, REDIS_PORT).
  3. Install this template with:
    • Appdata: the same folder as the LibreNMS container's /data.
    • DB_HOST, DB_PORT, DB_NAME, DB_USER, DB_PASSWORD: the same values as in the LibreNMS container. On the default bridge network, use the server IP (or another address the container can reach), not localhost.
    • REDIS_HOST: your Redis server.
    • PUID/PGID: the same as in the LibreNMS container.
  4. Start it and check Settings → Pollers in LibreNMS: the dispatcher shows up with its node ID and hostname librenms-dispatcher.

Several dispatchers

  • Use the same Redis on the LibreNMS container and on every dispatcher.
  • Give each dispatcher its own DISPATCHER_NODE_ID and change --hostname=librenms-dispatcher under Extra Parameters, so LibreNMS can tell them apart.

LibreNMS shows each poller under its hostname. Without a fixed hostname, the name would change to a random container ID at every update.

Support

Requirements

A running LibreNMS container (for example librenms from A75G's repository), its MariaDB/MySQL database, and a Redis server.

Download Statistics

44,555,618
Total Downloads
157,518
This Month
229,828
Avg / Month

Total Downloads Over Time

Loading chart...

Related apps

Details

Repository
librenms/librenms:latest
Last Updated2026-08-31
First Seen2020-08-06

Runtime arguments

Network
bridge
Shell
sh
Privileged
false
Extra Params
--hostname=librenms-dispatcher

Template configuration

AppdataPathrw

The SAME folder your LibreNMS container uses for /data (config, RRD files, logs).

Target
/data
Default
/mnt/user/appdata/librenms/
Value
/mnt/user/appdata/librenms/
DB_HOSTVariable

Database host or IP, as in your LibreNMS container. It must be reachable from this container's network.

DB_PORTVariable

Database port.

Default
3306
Value
3306
DB_NAMEVariable

Database name, as in your LibreNMS container.

Default
librenms
Value
librenms
DB_USERVariable

Database user, as in your LibreNMS container.

Default
librenms
Value
librenms
DB_PASSWORDVariable

Database password, as in your LibreNMS container.

DB_TIMEOUTVariable

Seconds to wait for the database at start.

Default
60
Value
60
DISPATCHER_NODE_IDVariable

Unique ID of this dispatcher. Use a different one for each dispatcher container.

Default
dispatcher1
Value
dispatcher1
REDIS_HOSTVariable

Redis host or IP. Required: the dispatcher does not start without Redis. Set the same Redis on the LibreNMS container.

REDIS_PORTVariable

Redis port.

Default
6379
Value
6379
REDIS_PASSWORDVariable

Redis password, if any.

REDIS_DBVariable

Redis database number.

Default
0
Value
0
DISPATCHER_ARGSVariable

Extra arguments for librenms-service.py, e.g. -v for verbose logs.

MEMORY_LIMITVariable

PHP memory limit for the poller processes.

Default
256M
Value
256M
SIDECAR_DISPATCHERVariable

Runs this container as dispatcher. Must stay 1.

Default
1
Value
1
PUIDVariable

User ID, same as in your LibreNMS container.

Default
99
Value
99
PGIDVariable

Group ID, same as in your LibreNMS container.

Default
100
Value
100