Option 1 - vCentre Event Console
- In the Dynatrace menu, go to Settings > Cloud and virtualization > VMware, and select Test connection.
- In the vSphere web client, go to Event Console. For details, see View Events in the vSphere Web Client.
- Check for events related to the user that is setup in Dynatrace credentials. With correct network setup and correct credentials, you should expect a pair of UserLoginSessionEvent and UserLogoutSessionEvent entries from the IPs of one or more ActiveGates that have VMWare monitoring enabled and that have tested the connection.
- Check for errors visible in the events. If there is no entry at all or no entry for the ActiveGate you were expecting, check your network setup.
Option 2 - VMware PowerCLI (Windows only)
If you're using an ActiveGate deployed on a Windows machine, use the following procedure to verify that your VMware infrastructure is working. These commands should be executed on the server where the ActiveGate is installed.
- Install VMware PowerCLI.
- Enable script execution in PowerShell.
Set-ExecutionPolicy -ExecutionPolicy Unrestricted -Scope CurrentUser
- Connect to the vSphere server using your Dynatrace credentials.
Connect-VIServer -Server <vsphere_address> -Protocol https -User <username> -Password <password>
- Test the connection.
Get-VM
Monitoring invalid credentials
Dynatrace version 1.275+
When the invalid credentials disablement mechanism is triggered, Dynatrace generates an event to alert you that the credentials used for VMware monitoring are invalid. The event remains active for up to 6 hours and will automatically close after this period.
The event may close earlier if the affected credentials are corrected or completely removed from the settings. Alternatively, you can manually close the problem if you consider it resolved or irrelevant.