Browse Source

Merge pull request #4566 from dedeckeh/pr-netsnmp-config

netsnmp: add global enabled config option
lilik-openwrt-22.03
Stijn Tintel 8 years ago
committed by GitHub
parent
commit
0aa457d126
3 changed files with 7 additions and 3 deletions
  1. +1
    -1
      net/net-snmp/Makefile
  2. +1
    -0
      net/net-snmp/files/snmpd.conf
  3. +5
    -2
      net/net-snmp/files/snmpd.init

+ 1
- 1
net/net-snmp/Makefile View File

@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=net-snmp
PKG_VERSION:=5.7.3
PKG_RELEASE:=6
PKG_RELEASE:=7
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/net-snmp


+ 1
- 0
net/net-snmp/files/snmpd.conf View File

@ -116,4 +116,5 @@ config engineid
# option trapsess '-v 3 -e 0x80001f88808c18d3f7b0000 -u trapuser -a MD5 -A administrator -l authPriv -x DES -X rootpasswd udp:127.0.0.1:162'
config snmpd general
option enabled '1'
# list network 'wan'

+ 5
- 2
net/net-snmp/files/snmpd.init View File

@ -272,10 +272,13 @@ snmpd_setup_fw_rules() {
start_service() {
[ -f "$CONFIGFILE" ] && rm -f "$CONFIGFILE"
procd_open_instance
config_load snmpd
config_get_bool snmp_enabled general enabled 1
[ "$snmp_enabled" -eq 0 ] && return
procd_open_instance
config_foreach snmpd_agent_add agent
config_foreach snmpd_agentx_add agentx
config_foreach snmpd_system_add system


Loading…
Cancel
Save