Navigation
This version of the documentation is archived and no longer supported. To learn how to upgrade your version of MongoDB Ops Manager, refer to the upgrade documentation.
You were redirected from a different version of the documentation. Click here to go back.

Add Monitoring Agent User for MONGODB-CR

Ops Manager Monitoring Agent can use the MongoDB Challenge-Response (MONGODB-CR) to authenticate to hosts that enforce access control.

To authenticate using MONGODB-CR, create a user in the admin database with the appropriate roles in MongoDB.

Prerequisites

There are additional authentication configuration requirements for Ops Manager Monitoring when using MongoDB 2.4 with authentication. See Required Access for Monitoring Agent for more information.

MongoDB 2.6

To monitor MongoDB 2.6 instances, create a user in the admin database with an operation that resembles the following:

use admin
db.createUser(
   {
     user: "<username>",
     pwd: "<password>",
     roles: [ { role: "clusterMonitor", db: "admin" } ]
   }
)

See Access Control for MongoDB 2.6 for more information on the required access.

MongoDB 2.4

To monitor MongoDB 2.4 instances, create a user in the admin database with an operation that resembles the following:

use admin
db.addUser(
   {
     user: "<username>",
     pwd: "<password>",
     roles: [
        "clusterAdmin",
        "readAnyDatabase"
     ]
   }
)

See Access Control for MongoDB 2.4 without Profiling for more information on the required access.

Monitor with Database Profiling

To monitor MongoDB 2.4 databases with database profiling, create a user in the admin database with an operation that resembles the following:

use admin
db.addUser(
   {
     user: "<username>",
     pwd: "<password>",
     roles: [
        "clusterAdmin",
        "readAnyDatabase",
        "dbAdminAnyDatabase"
     ]
    }
)

See Access Control for MongoDB 2.4 with Profiling for more information on the required access.

Monitor without dbStats

To monitor MongoDB 2.4 instance without dbStats, create a user in the admin database with an operation that resembles the following:

use admin
db.addUser(
   {
     user: "<username>",
     pwd: "<password>",
     roles: [ "clusterAdmin" ]
   }
)

See Access Control for MongoDB 2.4 without dbStats for more information on the required access.

Host Settings

In addition to adding the agent as a MongoDB user, you must also specify the host’s authentication settings. You can specify the host’s authentication settings when adding the host, or you can edit the settings for an existing host.