|
Prerequisites
There are no external required packages on Windows. The net-snmp library is included as part of the MSI.
Install MIB Configuration Files -> Install Configuration files
The Windows installer should install the config file (mongod.conf) to the home directory of the user doing the installation. %HOMEPATH%\.snmp. If running as a user different from the one you ran the MSI installer then you need to copy the file to the appropriate directory. If the windows service is set to run as Network Service then copy the config file to c:\Windows\ServiceProfiles\NetworkService\.snmp>
The check for mongod running with snmp will not work if it was on option on a config file instead of SNMP. Also this is Linux specific. I would change this to connect using the shell and then run db.adminCommand("getCmdLineOpts") or extend it to say if config file was used to go look at the config file.
Test SNMP
LSOF is not avail on Windows
Also instead of port 1161 you should specify to check the port which is configured in the snmp config file for MongoDB
1.3.6.1.4.1.37601 -> 1.3.6.1.4.1.34601 (the IANA has now been changed)
|