Symptoms:
VMware vCenter Server 7.x
The Appliance is missing localhost in /etc/hosts file, or /etc/resolv.conf does not have proper DNS servers listed.
/etc/resolv.conf should have primary and secondary DNS servers per install, and this can be manually changed by editing this file post install if that does change and VAMI is not accessible.
/etc/hosts should originally look similar to:
Take a backup of the /etc/hosts file before making any changes.
Modify /etc/hosts file by adding localhost. It should look similar to the below:
Skyline Health Diagnostics can be used to detect and provide remediation to issues in the vSphere and vSAN
https://knowledge.broadcom.com/external/article/345059/vmware-skyline-health-diagnostics-for-vs.html