There are several issues that can cause this problem. To resolve this issue:
- Verify name resolution (DNS)
- Verify the hardware clock time
- Reinstall the vCenter Server agents on the host
Verify naming resolution (DNS)
To verify that the DNS information in /etc/resolv.conf is correct for your environment, run the command:
Verify that the host is connected to a valid NTP server with the command:
ntpq -p <ntpserver>
You can also review the NTP logs for errors:
cat /var/log/syslog.log
Note: If the CMOS clock is incorrect, you need to go into the BIOS of the host server to reset the CMOS clock to the correct time for your region.
Reinstall the vCenter Server agents on the host
To reinstall the vCenter Server agents:
- Remove the host from vCenter Server.
- Uninstall the vpxa and aam agents from the host.
- Run this command to remove the vpxa agent from an ESX host:
rpm -qa | grep vpx
rpm -e output_from_previous_command
- Run this command to remove the aam agent from an ESX host:
rpm -qa | grep aam
Note: The output of this command has two entries.
rpm -e output_from_previous_command
- Run this command to remove the vpxa agent on an ESXi host:
cd /opt/vmware/uninstallers/VMware-vpxa-uninstall.sh
- Run this command to remove the aam agent on an ESXi host:
cd /opt/vmware/uninstallers/VMware-aam-ha-uninstall.sh
- Run this command to remove the vpxuser:
userdel vpxuser
Note: Verify that the /etc/pam.d/system-auth file is not modified.
- Restart the management agents on the host with the commands:
service vmware-vpxa restart
service mgmt-vmware restart
- Re-add the host to vCenter Server.