Browse Source

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>
lilik-openwrt-22.03
Stijn Tintel 10 years ago
parent
commit
bee2865492
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      net/net-snmp/files/snmpd.init

+ 4
- 0
net/net-snmp/files/snmpd.init View File

@ -159,6 +159,10 @@ start_service() {
procd_set_param file $CONFIGFILE
procd_set_param respawn
for iface in $(ls /sys/class/net 2>/dev/null); do
procd_append_param netdev "$iface"
done
procd_close_instance
}


Loading…
Cancel
Save