向亚马逊ec2的彩信服务报告彩信代理



我的db在EC2上,我已经成功安装了MMS代理并成功运行。但是,当我从MMS Hosts检查时,它显示

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

和似乎运行正常…从彩信服务检查座席部分

ip-xx-xx-xx-xx  xxx.xxx.xxx.xxx         12  1.5.7       05-10-13 - 10:11

显示正确

是否有某种防火墙问题或需要通过的出站设置?请帮助…

(更新)当我尝试从EC2实例远程访问时,我得到了这个…似乎我可以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

好的…这就是解决我问题的方法。我的mongodb和代理在同一个实例中。我不得不打开27017(端口用于我的mongodb)从aws控制台的入站连接,这解决了。

,例如我的ec2弹性IP是1.1.1.1在安全组中,我添加了1.1.1.1/32端口27017。这就解决了我的问题。有点奇怪,但这很有帮助。

最新更新