我的数据库在EC2上,并且我已成功安装MMS代理并成功运行。 然而,当我从MMS主机检查,它说在亚马逊ec2上向MMS服务报告mms代理
You do not have a monitoring agent that is sending data to MMS or hosts configured.
当我看到日志
...它说
2013-05-10 16:49:02,810 INFO Started agent parent process - version: 1.5.7
2013-05-10 16:49:07,996 INFO Starting agent process - version 1.5.7
2013-05-10 16:49:08,002 INFO Started agent process - parent pid: 1196 - version: 1.5.7
和检查代理时似乎运转很正常.. 从MMS服务部分
ip-xx-xx-xx-xx xxx.xxx.xxx.xxx 12 1.5.7 05-10-13 - 10:11
它显示正确。
是否有某种防火墙问题或出站设置,我需要通过?请帮助...
(更新) 我得到这个当我尝试从EC2实例TELENET ...好像我可以telnet到mms.10gen.com
telnet mms.10gen.com 443
Trying 75.101.156.xxx...
Connected to mms.10gen.com.
Escape character is '^]'.
Connection closed by foreign host.
(另一个更新) 这是我从代理日志中得到的......好像我正在获取数据库连接问题?
Problem collecting non-blocking data from: 54.215.108.xxx:27017 - exception: Traceback (most recent call last): File "/root/deploy/versions/p4n_config/master/p4n_config/resources/mms-agent/nonBlockingStats.py", line 56, in run monitorConn = self.mmsAgent.getDbConnection(self.hostKey) File "/root/deploy/versions/p4n_config/master/p4n_config/resources/mms-agent/mmsAgent.py", line 109, in getDbConnection return pymongo.Connection(hostDef['mongoUri'] , slave_okay=True, ssl=True, document_class=bson.son.SON) File "/usr/local/lib/python2.7/dist-packages/pymongo/connection.py", line 220, in __init__ max_pool_size, document_class, tz_aware, _connect, **kwargs) File "/usr/local/lib/python2.7/dist-packages/pymongo/mongo_client.py", line 336, in __init__ raise ConnectionFailure(str(e)) ConnectionFailure: could not connect to 54.215.108.xxx:27017: timed out
您必须在MMS UI界面中添加主机(mongoDB)信息,为管理数据库提供正确的凭据。然后情节应该显示在未来10-15分钟。 – 2013-05-10 20:16:12
即使我添加主机,我得到 该代理没有收集该主机的任何数据。 – CIF 2013-05-10 22:58:26
这个问题会在[mongodb-mms'社区论坛](https://groups.google.com/group/10gen-mms)中更好地提出。如果你可以包含一个链接到你的彩信组(只有10gen的工作人员可以查看详细信息),那么有人可以更好地提供帮助。如果添加新主机已超过15分钟,我会建议在MMS中检查您的[Agent日志](https://mms.10gen.com/#agentLogsTab)选项卡,以查看是否有任何相关错误。 – Stennie 2013-05-11 08:27:25