1
0
mirror of https://git.openwrt.org/feed/packages.git synced 2024-06-17 12:53:54 +02:00
openwrt-packages/net/mini_snmpd/files/mini_snmpd.config
Robert von Könemann 3bd11c3751 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>
2020-05-14 21:18:48 +02:00

28 lines
1.1 KiB
Plaintext

# you may add more than the 'default' mini_snmpd instances provided they all bind to different ports/interfaces
# to get around max 4 interface or mountpoint limit constrained by mini_snmpd's mib
config mini_snmpd 'default'
option enabled 1
option ipv6 0
# Verbose flag given to mini_snmpd, extra verbose is only possible with compile time config flags
option debug 0
# Turn on community authentication (snmp agent must use community name)
option auth 0
option community 'public'
option description 'OpenWRT'
option contact 'OpenWRT router <openwrt@openwrt.org>'
option location 'Undisclosed'
# to listen on all interfaces you need to set option listen_interface ''
option listen_interface 'lan'
#option udp_port '161'
#option tcp_port '161'
#option vendor_oid ''
option mib_timeout 1
# enable basic disk usage statistics on specified mountpoint
list disks '/overlay'
list disks '/tmp'
# enable basic network statistics on specified interface
# 4 interfaces maximum per instance, as named in /etc/config/network and luci
# not physical device names
list interfaces 'lan'
list interfaces 'wan'