Skip to content

Commit

Permalink
Quick and dirty fix for snmp extend to respond correctly. (#494)
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
calvinthefreak authored Nov 8, 2023
1 parent eba0846 commit e34cde0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion snmp/mailcow-dockerized-postfix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit e34cde0

Please sign in to comment.