-
Type:
New Feature Request
-
Resolution: Unresolved
-
Priority:
Trivial
-
None
-
Affects Version/s: None
-
Component/s: Documentation (D)
-
None
For a MongoDB server that is in a cluster versus a single node, different user permissions needs to be added to view metrics.
If the user permissions for the single node are created on a cluster, then it will get Unauthorized errors.
Please consider adding this to the template instructions:
For cluster:
db.createUser(
{user: “zbx_monitor”,pwd: “************”,
roles: [{ "role": "clusterMonitor", "db": "admin" },{ "role": "readAnyDatabase", "db": "admin" }],
}
)
For single node:
db.createUser(
{user: “zbx_monitor”,pwd: “************”,
roles: [{ "role": "readAnyDatabase", "db": "admin" }],
}
)
Regards.-