|
I believe this ticket can be closed. %HOMEPATH%/.snmp is one of the places Net-SNMP will look for a configuration file, but it is not first in the search path. Additionally, the search path can be overridden with an environment variable.
As per the Net-SNMP config docs :
By default, the applications look for configuration files in the following 4 directories, in order: /usr/local/etc/snmp, /usr/local/share/snmp, /usr/local/lib/snmp, and $HOME/.snmp. In each of these directories, it looks for files with the extension of both conf and local.conf (reading the second ones last). In this manner, there are 8 default places a configuration file can exist for any given configuration file type.
Additionally, the above default search path can be overridden by setting the environment variable SNMPCONFPATH to a colon-separated list of directories to search for. The path for the persistent data should be included when running applications that use persistent storage, such as snmpd.
For Windows, the above should all apply, with the drive defaulting to current drive. The Net-SNMP Windows readme states that setting of the SNMPCONFPATH is the preferred means for setting path to the config, when running as a Windows service.
|