Use get_hostinfo() instead of hostname in failover messages

In multi-instance environment, we would like to check not only the hostname but also the port number.