mongodb-mms监牢mongo cluster 认证问题

apple613 2015-12-10 04:54:18
采用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`

我想应该是认证没有通过造成的。

想问一下,还需要什么配置吗?如何解决这个问题??谢谢
...全文
340 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

1,747

社区成员

发帖
与我相关
我的任务
社区描述
MongoDB相关内容讨论区
社区管理员
  • MongoDB社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧