aboutsummaryrefslogtreecommitdiff
path: root/net/mini_snmpd/files/mini_snmpd.init
diff options
context:
space:
mode:
authorRobert von Könemann <lordtaifleh@gmail.com>2020-05-09 14:35:36 +0200
committerRobert von Könemann <lordtaifleh@gmail.com>2020-05-14 21:18:48 +0200
commit3bd11c3751880ead35b0f1735e24ec074e02a6a0 (patch)
tree8b6237e8671e19d5b58f71704a7f540dce584eda /net/mini_snmpd/files/mini_snmpd.init
parent0206a87146fef2b20d18187832935f63641f5c9b (diff)
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. Signed-off-by: Robert von Könemann <lordtaifleh@gmail.com>
Diffstat (limited to 'net/mini_snmpd/files/mini_snmpd.init')
-rw-r--r--net/mini_snmpd/files/mini_snmpd.init2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/mini_snmpd/files/mini_snmpd.init b/net/mini_snmpd/files/mini_snmpd.init
index 96dc5ab9e..d0b1e204e 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"