MongoDB Documentation, Release 3.0.4 Considerations Configuration Files Procedure $^{91}$http://www.net-snmp.org/ Only mongod.exe instances provide SNMP support. mongos.exe and the other MongoDB binaries do not support SNMP. Changed in version 2.6. MongoDB Enterprise contains the following configuration files to support SNMP: Step 1: Copy configuration files. Use the following sequence of commands to move the SNMP configuration files to the SNMP service configuration directory. First, create the SNMP configuration directory if needed and then, from the installation directory, copy the configura- tion files to the SNMP service configuration directory: The configuration filename is tool-dependent. For example, when using net-snmp the configuration file is snmpd.conf . Edit the configuration file to ensure that the communication between the agent (i.e. snmpd or the master) and sub- agent (i.e. MongoDB) uses TCP. Ensure that the agentXAddress specified in the SNMP configuration file for MongoDB matches the agentXAddress in the SNMP master configuration file. Step 2: Start MongoDB. Start mongod.exe with the snmp-subagent to send data to the SNMP master. mongod.exe --snmp-subagent Step 3: Confirm SNMP data retrieval. Use snmpwalk to collect data from mongod.exe : Connect an SNMP client to verify the ability to collect SNMP data from MongoDB. Install the net-snmp 91 package to access the snmpwalk client. net-snmp provides the snmpwalk SNMP client. 241 5.2. Administration Tutorials md C:\snmp\etc\config copy MONGOD-MIB.txt C:\snmp\etc\config\MONGOD-MIB.txt copy mongod.conf.subagent C:\snmp\etc\config\mongod.conf • mongod.conf.master : • mongod.conf.subagent : • MONGOD-MIB.txt : The management information base (MIB) file that defines MongoDB’s SNMP output. The configuration file to run mongod.exe as the SNMP subagent. This file sets SNMP run-time configuration options, including the AgentX socket to connect to the SNMP master. The configuration file to run mongod.exe as the SNMP master. This file sets SNMP run-time configuration options.