[SERVER-10934] Need to change default search path for snmp config file on windows Created: 27/Sep/13  Updated: 09/Jul/16  Resolved: 22/Oct/13

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Blocker - P1
Reporter: Sridhar Nanjundeswaran Assignee: Eric Milkie
Resolution: Done Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

mongodb enterprise edition on windows


Issue Links:
Related
is related to SERVER-10924 Enterprise edition: rename default sn... Closed
is related to SERVER-10932 In enterprise edition need an option ... Closed
Participants:

 Description   

Currently the default search path for the snmp config file on windows is %HOMEPATH%\.snmp or snmp the build directory. This is not intuitive and also the %HOMEPATH%\.snmp does not help for services. It should be changed to look in mongod.exe directory.



 Comments   
Comment by Sridhar Nanjundeswaran [ 22/Oct/13 ]

confirmed 8.3 path names works.
With default installation of mongod into program files The following works

set SNMPCONFPATH=c:\PROGRA~1\MONGOD~1.3EN\bin

Comment by Eric Milkie [ 22/Oct/13 ]

This may just be a Windows net-snmp bug. After discussion, a workaround that Sridhar will test is to use 8.3 pathnames.

Comment by Sridhar Nanjundeswaran [ 22/Oct/13 ]

SNMPCONFPATH only works for directories that do not include spaces.

Comment by Eric Milkie [ 22/Oct/13 ]

By setting SNMPCONFPATH environment variable, you can override the default search path for config files. This should be called out in the documentation for 2.6.

Comment by Sridhar Nanjundeswaran [ 27/Sep/13 ]

Note: The homepath is only being searched for in the case of client OS (windows 7). On Windows 2k8 R2 homepath is not part of the search path. Only buildpath is. e.g.
Warning: no access control information configured.
(Config search path: d:/work/snmp/etc/snmp;d:/work/snmp/share/snmp;d:/work/snm
p/lib)

This is a problem if your machine does not have a usable d:\

Also note this search path is where it looks for the default MIBs
MIB search path: d:/work/snmp/share/snmp/mibs
Cannot find module (IP-MIB): At line 0 in (none)
Cannot find module (IF-MIB): At line 0 in (none)

Generated at Thu Feb 08 03:24:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.