From 3bd11c3751880ead35b0f1735e24ec074e02a6a0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Robert=20von=20K=C3=B6nemann?= Date: Sat, 9 May 2020 14:35:36 +0200 Subject: [PATCH] mini_snmpd: Add sysDescr option. Some monitoring tools will run into errors when sysDescr field is empty. This was the case for cacti 1.2.8 that i'm using to monitor my network. Ideally the sysDescr field would contain some information from the overview of luci, e.g. the Model, Firmware and Kernel-Version fields, but i am stranger to OpenWRT, so I'm unable to do that. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert von Könemann --- net/mini_snmpd/Makefile | 2 +- net/mini_snmpd/files/mini_snmpd.config | 1 + net/mini_snmpd/files/mini_snmpd.init | 2 ++ 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/net/mini_snmpd/Makefile b/net/mini_snmpd/Makefile index a40ba7e959..69f33b7796 100644 --- a/net/mini_snmpd/Makefile +++ b/net/mini_snmpd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=mini_snmpd PKG_VERSION:=1.4-rc1 -PKG_RELEASE:=5 +PKG_RELEASE:=6 PKG_MAINTAINER:=Marcin Jurkowski PKG_LICENSE:=GPL-2.0 PKG_LICENSE_FILES:=COPYING diff --git a/net/mini_snmpd/files/mini_snmpd.config b/net/mini_snmpd/files/mini_snmpd.config index c06f7b1901..e00685ea91 100644 --- a/net/mini_snmpd/files/mini_snmpd.config +++ b/net/mini_snmpd/files/mini_snmpd.config @@ -8,6 +8,7 @@ config mini_snmpd 'default' # Turn on community authentication (snmp agent must use community name) option auth 0 option community 'public' + option description 'OpenWRT' option contact 'OpenWRT router ' option location 'Undisclosed' # to listen on all interfaces you need to set option listen_interface '' diff --git a/net/mini_snmpd/files/mini_snmpd.init b/net/mini_snmpd/files/mini_snmpd.init index 96dc5ab9e8..d0b1e204e5 100644 --- a/net/mini_snmpd/files/mini_snmpd.init +++ b/net/mini_snmpd/files/mini_snmpd.init @@ -36,6 +36,7 @@ mini_snmpd_validation="enabled:bool:0 \ auth:bool:1 \ community:rangelength(1,32):public \ contact:maxlength(255) \ + description:maxlength(255) \ location:maxlength(255) \ listen_interface:uciname \ udp_port:port \ @@ -212,6 +213,7 @@ start_instance() { append_arg "-c" "$community" append_arg "-L" "$location" append_arg "-C" "$contact" + append_arg "-D" "$description" append_arg "-p" $udp_port append_arg "-P" $tcp_port append_arg "-V" "$vendor_oid" -- 2.30.2