Commit graph

9 commits

Author SHA1 Message Date
Stijn Tintel
5b1e9eefd0 net-snmp: reload snmpd on interface events
When applying wireless configuration changes, the ifindex of the
wireless interface(s) change. While snmpd picks up the new interfaces
with the correct index, it does not remove the old ones:

IF-MIB::ifName.23 = STRING: wlan0
IF-MIB::ifName.24 = STRING: wlan1
IF-MIB::ifName.25 = STRING: wlan0
IF-MIB::ifName.26 = STRING: wlan1

This causes problems for monitoring tools that use ifName (or ifDesc) as
interface reference. Add a trigger that reloads snmpd on interface
up/down events so that it will no longer have the old interfaces.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2016-02-20 16:46:17 +01:00
feckert
0c0722926d net-snmp: add service_triggers callback
Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
Signed-off-by: Helge Mader <hmader@tdt.de>
2015-08-06 12:09:15 +02:00
feckert
8ca22a2a63 net-snmp: add config options
- trap_hostname
- trap_ip
- access_default
- access_HostName
- access_HostIP

Signed-off-by: Florian Eckert <Eckert.Florian@googlemail.com>
Signed-off-by: Helge Mader <hmader@tdt.de>
2015-08-06 12:01:02 +02:00
Stijn Tintel
bee2865492 net-snmp: monitor ifindex changes
When an ifindex for an interface changes, some monitoring tools can no
longer find the interface and send alerts. Monitor all network
interfaces via the procd netdev parameter, so that
/etc/init.d/snmpd reload will restart snmpd if any ifindex changed.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2015-02-18 06:19:59 +01:00
Stijn Tintel
53fc8d3191 net-snmp: cosmetic changes in snmpd init script
- Refactor RUN_C into CONFIGFILE, as used in dnsmasq and igmpproxy init
  scripts.
- Add a newline after each function definition.

Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2015-02-18 06:01:19 +01:00
Stijn Tintel
8faff3334f net-snmp: convert snmpd to procd
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2015-02-18 05:05:27 +01:00
Stijn Tintel
e2b43afc85 net-snmp: remove /etc/default/snmpd Debianism
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
2015-02-18 04:46:05 +01:00
rcmcronny
29ca0b42b2 Update snmpd.init
add support for "disk <partition> <size>" option

example for /etc/config/snmpd
===========
config disk
	option partition	'/'
	option size		'500'
===========
2014-10-13 10:30:43 +02:00
Jo-Philipp Wich
7c00700f58 net-snmp: import from oldpackages, add myself as maintainer, add license information, update to v5.4.4, refresh patches
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
2014-07-02 14:25:45 +02:00