When adding a new host to MMS using and IP address and port, MMS would connect to the replica set, add new hosts for all of the members in the set, but instead of using their IP addresses as listed in rs.status
, it would add them by the machine's hostname. It would then remove the host you added. This causes problems if your machines have multiple interfaces, and mongod
is not running on the one that the hostname points to. (As is my case.)
Previously, it was that you could go into the Web UI, re-add the appropriate hosts, and then remove the defunct ones. MMS would then happily take this config.
However, lately, the monitoring agent appears to have been re-written in Go. Now, any time I add a host, as soon as it connects, it deletes the host, re-adds it with the bad hostname, and then proceeds to start logging that it can't connect (to the modified hostname that it chose).
Is there any known way to override this behavior?