Bug 215506 - killall -HUP bsnmpd (configuration reload for bsnmpd) fails if any modules are enabled in /etc/snmpd.config
Summary: killall -HUP bsnmpd (configuration reload for bsnmpd) fails if any modules ar...
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-23 08:09 UTC by Enji Cooper
Modified: 2016-12-23 08:10 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enji Cooper freebsd_committer freebsd_triage 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'