MMS gets hostname from uname and can't connect to it

That piece in the agent is actually what the agent reports its name as, not what it is connecting to. In terms of what it does connect to, once you run it:

  • mms.10gen.com (port 443 - SSL) - it connects here to upload data and to read its config
  • every host you configure from your MMS page (the + button)
  • any auto-discovered hosts (if you add a mongos for example)

It will connect to the hosts based on the hostname you input into MMS when you cick the add button, or it will use the host names it auto-discovers.

Note: you can add IP addresses to the MMS config instead of hostnames and the agent will pick that up just fine, you can then add aliases to improve readability on the site after the fact

Because I work for 10gen, I can take a look at your MMS group if you send me the group name separately if you like. If not then I suggest taking a look at the Agent Log tab - that will list the errors the agent has seen, assuming it can connect to mms.10gen.com at all.


I always set a hosts entry like this:

1.2.3.4 host.domain.com host

Precisely for this. As far as I know, there is no other way the FQDN can be obtained on the host itself.