Unable to login to vCenter to monitor VM's - vmware] (12) login failed, VMWare API is unavailable
search cancel

Unable to login to vCenter to monitor VM's - vmware] (12) login failed, VMWare API is unavailable

book

Article ID: 254054

calendar_today

Updated On:

Products

DX Unified Infrastructure Management (Nimsoft / UIM) CA Unified Infrastructure Management On-Premise (Nimsoft / UIM) CA Unified Infrastructure Management SaaS (Nimsoft / UIM)

Issue/Introduction

The vmware is not longer working and it is generating the following errors:

vmware cannot monitoring vCenters. 

No metrics / QOS is coming from vmware probe 

 

Errors in vmware.log: 

 

Jul 16 13:34:10:769 [Data Collector - <vcenter_name>_vcenter, vmware] isVmwareApiAvailable() failed: 
Jul 16 13:34:10:769 [Data Collector - <vcenter_name>_vcenter, vmware] (12) login failed, VMWare API is unavailable: Exception caught trying to invoke method RetrieveServiceContent; nested exception is: 
java.net.UnknownHostException: <vcenter_name>: Exception caught trying to invoke method RetrieveServiceContent; nested exception is: 
java.net.UnknownHostException: <vcenter_name>
at com.nimsoft.probe.application.vmware.sdk.VmwareEnvAdaptor.login(VmwareEnvAdaptor.java:282)
at com.nimsoft.probe.application.vmware.sdk.VmwareEnvAdaptor.relogin(VmwareEnvAdaptor.java:1266)

 

 

 at com.vmware.vim25.mo.ServiceInstance.<init>(ServiceInstance.java:79) 
 at com.vmware.vim25.mo.ServiceInstance.<init>(ServiceInstance.java:69) 
 at com.nimsoft.probe.application.vmware.sdk.VmwareEnvAdaptor$ServiceInstanceFactory.getServiceInstance(VmwareEnvAdaptor.java:201) 
 at com.nimsoft.probe.application.vmware.sdk.VmwareEnvAdaptor.login(VmwareEnvAdaptor.java:259) 
 ... 14 more 
[Data Collector - ##.##.###.##, vmware] PERF: START: Vmware setup graph with resource ##.##.###.##
[Data Collector - ##.##.###.##, vmware] PERF: DONE:  Vmware setup graph with resource ##.##.###.##   {Seconds=0.000} 
[Data Collector - ##.##.###.##, vmware] Inventory update failed. Sending resource alarm 
[Data Collector - ##.##.###.##, vmware] (12) login failed, VMWare API is unavailable. 
 at com.nimsoft.probe.application.vmware.sdk.VmwareSession.updateInventory(VmwareSession.java:167) 
 at com.nimsoft.probe.common.ctd.CtdSession.doInventoryUpdate(CtdSession.java:254) 
 at com.nimsoft.probe.application.vmware.collector.VmwareDataCollector.executeSessionUpdateInventory(VmwareDataCollector.java:173) 
 at com.nimsoft.probe.common.ctd.ProbeDataCollector.execute(ProbeDataCollector.java:214) 
 at com.nimsoft.vm.collector.DataCollector.run(DataCollector.java:151) 
 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 
 at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) 
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) 
 at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) 
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
 at java.lang.Thread.run(Thread.java:745) 
Nov 09 16:26:28:973 [Data Collector - ##.##.###.##, vmware] PERF: DONE:  ----- Pass-008 --- Data Collector Check Interval for: ##.##.###.##   {Seconds=5.446} 
Nov 09 16:26:28:973 [Data Collector - ##.##.###.##, vmware] PERF: Memory Status: Max=1820   CurrentAllocated=191   Free=170   Used=21 MB 
Nov 09 16:26:28:973 [Data Collector - ##.##.###.##, vmware] DataCollector for ##.##.###.## finished collecting data 

Environment

  • DX UIM 23.4.*
  • vmware probe 6.87 or higher

Cause

The error-> vmware] (12) login failed, VMWare API is unavailable, is usually caused by

  • Incorrect user credentials, and/or
  • Permission issues for the configured user

Resolution

To Resolve this issue: 

  • Check the vmware.cfg file or vmware probe via raw configure mode and make sure that the username and password are current, valid/what you expect.

  • To help troubleshooting wrong/no longer valid user name / password, from a web browser running on the robot where the vmware probe is deployed, try accessing the Managed Object Browser (MOB) of the configured vCenter or ESX server using the user and password configured in the failing probe profile:

https://<FQDN (or the IP address) for the ESX/ESXi or vCenter Server>/mob

If there are access issues for the configured user, they can be determined here.  Once these issues are resolved on the vCenter or ESX/ESXi server, test the connection again from the vmware probe.

 

Additional Information

Check the release notes and vmware probe requirements and can be found here:

vmware (VMware Monitoring) Release Notes