1

我正在尝试使用 mongoDB MMS 备份功能。尝试在向导的“添加主机”部分进行连接时出现以下错误。

无法在检查间隔内检测到主机。

我的 Windows 7 笔记本电脑上有 MongoDB 2.6.4。我创建了一个具有以下权限的管理员用户:

> db.createUser(
... {
... user: "admin",
... pwd: "xxx"
... roles: [
... "clusterAdmin",
... "readAnyDatabase",
... "dbAdminAnyDatabase",
... "userAdminAnyDatabase"
... ]
... }
... );

我跑mongod --auth

现在我尝试使用 MONGODB-CR Auth 机制通过 MMS 连接并得到我上面描述的错误。

在日志中,我收到许多错误,如下所示:

[2014/10/21 09:13:59] [monitoring.info] [monitoring-agent/components/agent.go:551] 
Starting 2 marshal handlers
[2014/10/21 09:14:21] [monitoring.error] [monitoring-agent/components/agent.go:314] 
Failed to fetch Conf
Failure getting conf. Op: Get Err: dial tcp [I've hide the IP]:443: ConnectEx tcp:
 A connection attempt failed because the connected party did not properly respond after
 a period of time, or established connection failed because connected host has failed 
 to respond.
at monitoring-agent/components/conf.go:249
at monitoring-agent/components/agent.go:312
at mongodb.com/monitoring-agent/monitoring-agent-service.go:129
at winsvc/svc/service.go:200
at pkg/runtime/proc.c:1445

使用 Robomongo 0.8.4 客户端,我能够使用用户登录并通过。

我希望 MMS 能够连接到我的本地机器并初始化我机器上的数据库备份。

提前致谢。

4

1 回答 1

0

我在配置我的 mongodb-mms 时遇到了这个错误。在我的 Ops Manager 服务器上,我已经正确配置了我的 TLS 连接,但是在被监控的 mongo 服务器上,我的 TLS 证书不正确。/var/log/mongodb-mms-automation/monitoring-agent.log我试图监控的代理日志帮助了我:

[2020/04/26 02:05:47.363] [discovery.collector-mongo2:27017.error] [components/discovery.go:contexts:580] Discovery commands requiring authentication will be skipped.
Failed to get connectionStatus. Err: `auth error: round trip error: (UserNotFound) Could not find user "CN=mms,OU=TestClientCertificateOrgUnit,O=TestClientCertificateOrg,L=TestClientCertificateLocality,ST=TestClientCertificateState,C=US" for db "$external"`
        at monitoring-agent/components/dialing.go:442
        at monitoring-agent/components/dialing.go:200
        at monitoring-agent/components/dialing.go:306
        at monitoring-agent/components/dialing.go:323
        at louisaberger/procexec/concurrency.go:45
        at src/runtime/asm_amd64.s:1357

请参阅此页面以添加您的mms用户,以便用户可以正确进行身份验证(如果只是混淆,则修复您的证书)。

于 2020-04-26T06:14:57.303 回答