mongodb-mms监牢mongo cluster 认证问题
采用shard方式部署了3个分片+3个CONFIG+三个mongos的cluster,并开启了keyFile认证机制。
创建cluster用户权限如下:
db.createUser(
{
user: "cluster",
pwd: "cluster",
roles:[{ role: "clusterAdmin", db: "admin" },
{ role: "clusterMonitor", db: "admin" },
{ role: "readAnyDatabase", db: "admin" },
{ role: "dbAdminAnyDatabase", db: "admin" }]
})
现在部署mongodb-mms-1.8.2服务和agent,并在增加监控主机时选择了集群方式,只增加了mongos的IP和PORT,并配置了用户cluster用户,但agent仍无法采用Cluster数据,报如下问题:
Task failure `getParameterAll`. Err: `Failed command to 192.168.140.54:27028 running [{getParameter *}] against DB admin. Err: `not authorized on admin to execute command { getParameter: "*" }` at monitoring-agent/components/task.go:297 at monitoring-agent/components/worker.go:169 at monitoring-agent/components/worker.go:235 at monitoring-agent/components/worker.go:247 at pkg/runtime/proc.c:1445`
我想应该是认证没有通过造成的。
想问一下,还需要什么配置吗?如何解决这个问题??谢谢