title: reporting mms agent to MMS service in amazon ec2
body: <p>My db is on EC2 and i have installed MMS agent successfully and running successfully.
  However, when i check from MMS Hosts, it says</p>
  
  <pre><code>You do not have a monitoring agent that is sending data to MMS or hosts configured. 
  </code></pre>
  
  <p>when i look at the log... it says</p>
  
  <pre><code>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
  </code></pre>
  
  <p>and seems running okay..
  From MMS service when checking Agents section</p>
  
  <pre><code>ip-xx-xx-xx-xx  xxx.xxx.xxx.xxx         12  1.5.7       05-10-13 - 10:11
  </code></pre>
  
  <p>it shows correctly.</p>
  
  <p>Is there some kind of firewall issue or outbound setting that I need to go through? Please help...</p>
  
  <p>(Update)
  I get this when i try to telenet from EC2 instance... seems like i can telnet to mms.10gen.com</p>
  
  <pre><code>telnet mms.10gen.com 443
  Trying 75.101.156.xxx...
  Connected to mms.10gen.com.
  Escape character is '^]'.
  Connection closed by foreign host.
  </code></pre>
  
  <p>(Another update)
  This is what i got from the agent log .. seems like i am getting database connection issue?</p>
  
  <pre><code>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
  </code></pre>