Troubleshooting problems arising in vCenter/ESX Discovery
During vCenter discovery, there are two major issues that users might encounter. Below are those issues and the steps to systematically troubleshoot them:
1. Failed to connect to the VMware WebService (Device may not be reachable/Credentials may be wrong)
- Check whether the given IP Address/DNS Name/VMware credentials are valid.
- If vCenter discovery fails with DNS name, then try with IP Address.
- Check whether the same credential that is being used for MOB connection/vSphere client has been provided in OpManager. You can check if it is valid by accessing the vCenter URL (https://<vCenter_IP>) and trying to login with the same credentials.
- Check if there are any firewall restrictions that are preventing OpManager from reaching the vCenter server.
- Check if the provided credentials have access to all the hosts/VMs in the vCenter.
- Check whether the vCenter Server is being discovered via the vCenter discovery mode. If it is an ESX/ESXi host that is to be discovered, then ESX discovery mode should be selected in the discovery page.
- Check if a proxy server has been configured in OpManager (from Settings → General Settings → Proxy Server Settings). If it has been enabled, then OpManager will not be able to connect with the vCenter/ESX host to be discovered, and the vCenter IP/DNS needs to be added in the "No Proxy for" field to resolve this issue.
- From vCenter version 6 onwards, two new settings are available under the ESXi Host Advanced System Settings page:
- Security.AccountLockFailures: Maximum allowed failed login attempts before locking out a user's account.
- Security.AccountUnlockTime: Time window (in seconds) to lock out a user's account after exceeding the maximum allowed failed login attempts.
- Sometimes, you might encounter an error even if you provide valid credentials, with "Invalid Login exception" errror message being displayed. This can be resolved by increasing the timeout value for the connection.
- You might also encounter this error if you are trying to discover vCenter version 7 or higher in OpManager builds 125181 or below, since vCenter v7 is not compatible with those versions. You will need to upgrade your OpManager installation to monitor that server.
2. Device already exists in OpManager.
This means that the device you are trying to discover has already been added in OpManager, as an "Unknown" device or a physical server. If it has been discovered with a different device type and you wish to discover it as a vCenter/Host, you can:
- Rediscover the device using vCenter credentials by clicking the hamburger menu in the Snapshot page and selecting "Rediscover device". You can then choose the appropriate credential profile and add it as a vCenter device.
- Delete the device and discover it again using the Virtualization discovery wizard.