From 967fabeca5968031b98627903671d97fd5480973 Mon Sep 17 00:00:00 2001 From: calvin_thefreak <5560381+calvinthefreak@users.noreply.github.com> Date: Sat, 21 Oct 2023 05:59:03 +0200 Subject: [PATCH] Quick and dirty fix for snmp extend to respond correctly. - Added "grep -v" to the output command. - Added a note for Users that don't understand why LibreNMS can't get the values when snmp user is not in docker group. --- snmp/mailcow-dockerized-postfix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/snmp/mailcow-dockerized-postfix b/snmp/mailcow-dockerized-postfix index 8fd536481..473321e6c 100644 --- a/snmp/mailcow-dockerized-postfix +++ b/snmp/mailcow-dockerized-postfix @@ -20,6 +20,9 @@ # please adjust librenms_poller_interval according to your LibreNMS setup - default to 5 minutes # requirements: mailcow-dockerized and pflogsumm # +# Note to users that struggle with the setup: Make sure, that your SNMP Daemon can use the docker command +# So please make sure, that the e.G. Debian-snmp user is added to the docker group! +# import json import re @@ -47,7 +50,7 @@ def cli_command(): + libre_to_mcd_postfix(librenms_poller_interval) + "m " + cli_get_docker_container() - + "| pflogsumm --smtpd-stats" + + "| pflogsumm --smtpd-stats 2>&1 | grep -v 'Use of uninitialized value'" ) return cli_part