From 93eb528cbb6ff4dce04c3128311a332f8fe6c4cc Mon Sep 17 00:00:00 2001 From: Andy Norwood <2754635+bonzo81@users.noreply.github.com> Date: Tue, 16 Apr 2024 10:10:56 +0100 Subject: [PATCH 1/4] Update 02-fix-perms.sh for rrd folder Since Librenms 23.10.0 each poller needs to create a folder in /rrd. See https://github.com/librenms/librenms/pull/15457. Without this permission the eventlog creates message "Failed to create rrd directory: /opt/librenms/rrd/x.x.x.x/" with every device poll. --- rootfs/etc/cont-init.d/02-fix-perms.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rootfs/etc/cont-init.d/02-fix-perms.sh b/rootfs/etc/cont-init.d/02-fix-perms.sh index 4f43ab61..07858f2f 100644 --- a/rootfs/etc/cont-init.d/02-fix-perms.sh +++ b/rootfs/etc/cont-init.d/02-fix-perms.sh @@ -10,7 +10,8 @@ chown librenms:librenms \ /data \ "${LIBRENMS_PATH}" \ "${LIBRENMS_PATH}/.env" \ - "${LIBRENMS_PATH}/cache" + "${LIBRENMS_PATH}/cache" \ + "${LIBRENMS_PATH}/rrd" chown -R librenms:librenms \ /home/librenms \ /tpls \ From 15400f77e1b6430e59b839c6336ea166a63529c7 Mon Sep 17 00:00:00 2001 From: Santiago Z Date: Sat, 20 Apr 2024 18:18:33 -0300 Subject: [PATCH 2/4] Update to LibreNMS 24.4.1 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b2a38f81..28b17697 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # syntax=docker/dockerfile:1 -ARG LIBRENMS_VERSION="24.3.0" +ARG LIBRENMS_VERSION="24.4.1" ARG WEATHERMAP_PLUGIN_COMMIT="0b2ff643b65ee4948e4f74bb5cad5babdaddef27" ARG ALPINE_VERSION="3.19" ARG SYSLOGNG_VERSION="4.5.0-r0" From caf846857af355db15113bf7d45d36b050de5d04 Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Mon, 29 Apr 2024 10:37:12 +0200 Subject: [PATCH 3/4] update README --- README.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 6ea29184..fc2147cd 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,7 @@ Docker image for [LibreNMS](https://www.librenms.org/), a fully featured network monitoring system that provides a wealth of features and device support. -> **Note** -> +> [!TIP] > Want to be notified of new releases? Check out 🔔 [Diun (Docker Image Update Notifier)](https://github.com/crazy-max/diun) > project! @@ -134,8 +133,7 @@ Image: librenms/librenms:latest ### Redis -> **Note** -> +> [!NOTE] > Redis variables should be set on all containers and are required when running > more than one dispatcher. @@ -252,8 +250,7 @@ $ docker run -d -p 8000:8000 --name librenms \ When you first access the webui, you will be prompted to create an admin user. -> **Note** -> +> [!NOTE] > If you lose access, you can create another one using the [`lnms` command](#lnms-command). ## Upgrade From 9bbe8f1d1dd55691cceddbef7c34da0fde04bebd Mon Sep 17 00:00:00 2001 From: CrazyMax <1951866+crazy-max@users.noreply.github.com> Date: Wed, 1 May 2024 14:57:29 +0200 Subject: [PATCH 4/4] update README --- README.md | 33 +++++++++++---------------------- 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index fc2147cd..3eb69f10 100644 --- a/README.md +++ b/README.md @@ -148,8 +148,7 @@ Image: librenms/librenms:latest ### Dispatcher service -> **Warning** -> +> [!WARNING] > Only used if you enable and run a [sidecar dispatcher container](#dispatcher-service-container). * `SIDECAR_DISPATCHER`: Set to `1` to enable sidecar dispatcher mode for this container (default `0`) @@ -158,16 +157,14 @@ Image: librenms/librenms:latest ### Syslog-ng -> **Warning** -> +> [!WARNING] > Only used if you enable and run a [sidecar syslog-ng container](#syslog-ng-container). * `SIDECAR_SYSLOGNG`: Set to `1` to enable sidecar syslog-ng mode for this container (default `0`) ### Snmptrapd -> **Warning** -> +> [!WARNING] > Only used if you enable and run a [sidecar snmptrapd container](#snmptrapd-container). * `SIDECAR_SNMPTRAPD`: Set to `1` to enable sidecar snmptrapd mode for this container (default `0`) @@ -205,8 +202,7 @@ Image: librenms/librenms:latest * `/data`: Contains configuration, plugins, rrd database, logs, additional Monitoring plugins, additional syslog-ng config files -> **Warning** -> +> [!WARNING] > Note that the volume should be owned by the user/group with the specified > `PUID` and `PGID`. If you don't give the volume correct permissions, the > container may not start. @@ -242,8 +238,7 @@ $ docker run -d -p 8000:8000 --name librenms \ librenms/librenms:latest ``` -> **Warning** -> +> [!WARNING] > `db` must be a running MySQL instance. ### First launch @@ -358,8 +353,7 @@ $ docker run -d --name librenms_dispatcher \ librenms/librenms:latest ``` -> **Warning** -> +> [!WARNING] > `librenms` must be a valid volume already attached to a LibreNMS container. ### Syslog-ng container @@ -377,8 +371,7 @@ $ docker run -d --name librenms_syslog \ librenms/librenms:latest ``` -> **Warning** -> +> [!WARNING] > `librenms` must be a valid volume already attached to a LibreNMS container. You have to create a configuration file to enable syslog in LibreNMS too. Create @@ -403,8 +396,7 @@ $ docker run -d --name librenms_snmptrapd \ librenms/librenms:latest ``` -> **Warning** -> +> [!WARNING] > `librenms` must be a valid volume already attached to a LibreNMS container. ### Add a LibreNMS plugin @@ -413,8 +405,7 @@ You can add [plugins for LibreNMS](https://docs.librenms.org/Extensions/Plugin-S in `/data/plugins/`. If you add a plugin that already exists in LibreNMS, it will be removed and yours will be used (except for Weathermap). -> **Warning** -> +> [!WARNING] > Container has to be restarted to propagate changes. ### Additional Monitoring plugins @@ -424,8 +415,7 @@ You can add a custom Monitoring plugin in `/data/monitoring-plugins/`. Some plugins can be found in the [Monitoring Plugins](https://github.com/monitoring-plugins/monitoring-plugins#readme) repo, or in the [unofficial fork for Nagios](https://github.com/nagios-plugins/nagios-plugins#readme). -> **Warning** -> +> [!WARNING] > Container has to be restarted to propagate changes. ### Custom alert templates @@ -433,8 +423,7 @@ repo, or in the [unofficial fork for Nagios](https://github.com/nagios-plugins/n You can add [Laravel alert templates](https://docs.librenms.org/Alerting/Templates/#base-templates) in `/data/alert-templates/`. -> **Warning** -> +> [!WARNING] > Container has to be restarted to propagate changes. ## Contributing