From a3afeec12905dd1eaa28dcad3753907b15eec541 Mon Sep 17 00:00:00 2001 From: Michael <35783820+mib1185@users.noreply.github.com> Date: Sun, 7 Jan 2024 16:32:15 +0100 Subject: [PATCH] Avoid flooding the console with snmpd debug log (#4) --- snmpd/CHANGELOG.md | 1 + snmpd/run.sh | 12 ++++++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/snmpd/CHANGELOG.md b/snmpd/CHANGELOG.md index cd49955..a99544b 100644 --- a/snmpd/CHANGELOG.md +++ b/snmpd/CHANGELOG.md @@ -2,6 +2,7 @@ ## 0.2.2 - add additional hass information via `NET-SNMP-EXTEND-MIB` +- fix logging to not flood the console with snmpd debug log ## 0.2.1 - fix libreNMS hardware detection for arm platforms diff --git a/snmpd/run.sh b/snmpd/run.sh index 2040f97..71a97e4 100755 --- a/snmpd/run.sh +++ b/snmpd/run.sh @@ -16,7 +16,11 @@ UN_KERNEL_RELEASE=$(uname -r) UN_KERNEL_VERSION=$(uname -v) UN_MACHINE=$(uname -m) -cat > /etc/snmp/snmpd.conf < $SNMP_CONF_FILE <> /etc/snmp/snmpd.conf <> $SNMP_CONF_FILE <> /etc/snmp/snmpd.conf <> $SNMP_CONF_FILE <