Bug 215506

Summary: killall -HUP bsnmpd (configuration reload for bsnmpd) fails if any modules are enabled in /etc/snmpd.config
Product: Base System Reporter: Enji Cooper <ngie>
Component: binAssignee: freebsd-bugs (Nobody) <bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Enji Cooper freebsd_committer 2016-12-23 08:09:53 UTC
If I use the default snmpd.config file (which enables MIB-II), it will fail to reload the configuration, citing that the MIB-II module has already been loaded. I had the USM module enabled as well, so as a control I disabled MIB-II, attempted the same thing, and it seems that any modules loaded prevent bsnmpd from reloading the configuration.

Window 1:

Start bsnmpd non-daemonized:

# bsnmpd -d

Window 2:

Force bsnmpd to reload the configuration:

# killall -HUP bsnmpd

Expected result:

- Any configuration changes made should take effect.

Actual result:

Something like the following is printed out in window 1, based on the first module it finds already loaded:

snmpd[97426]: assignment to begemotSnmpdModulePath.5.109.105.98.73.73 returns 12
snmpd[97426]:   in file /etc/snmpd.config line 148
snmpd[97426]: error reading config file '/etc/snmpd.config'