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)

Issue/Introduction

vmware probe is installed on the Primary Hub but the defined account to access vCenter is getting errors:

 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 - 10.xx.xxx.xx, vmware] PERF: START: Vmware setup graph with resource 10.xx.xxx.xx
[Data Collector - 10.xx.xxx.xx, vmware] PERF: DONE:  Vmware setup graph with resource 10.xx.xxx.xx   {Seconds=0.000} 
[Data Collector - 10.xx.xxx.xx, vmware] Inventory update failed. Sending resource alarm 
[Data Collector - 10.xx.xxx.xx, 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 - 10.xx.xxx.xx, vmware] PERF: DONE:  ----- Pass-008 --- Data Collector Check Interval for: 10.xx.xxx.xx   {Seconds=5.446} 
Nov 09 16:26:28:973 [Data Collector - 10.xx.xxx.xx, vmware] PERF: Memory Status: Max=1820   CurrentAllocated=191   Free=170   Used=21 MB 
Nov 09 16:26:28:973 [Data Collector - 10.xx.xxx.xx, vmware] DataCollector for 10.xx.xxx.xx finished collecting data 

Environment

  • Release: UIM 20.3
  • vmware probe 6.87

Resolution

Best practice is to deploy the vmware probe on a separate hub and not the Primary hub since it can end up requiring significant java memory allocation and you don't want to overload the Primary with a storage probe that requires a lot of resources/processing.

Also, vmware version 6.87 is a very old version of the vmware probe. The current GA version is 7.18 which is far superior in terms of VMware monitoring, reliability, scalability, and performance.

http://support.nimsoft.com/Files/Archive/00116/vmware-7.1.8.zip

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

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.

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.

Last but not least, check the release notes and most importantly the vmware probe requirements which are many and can be found here:

https://techdocs.broadcom.com/us/en/ca-enterprise-software/it-operations-management/ca-unified-infrastructure-management-probes/GA/monitoring/clouds-containers-and-virtualization/vmware-vmware-monitoring/vmware-vmware-monitoring-release-notes.html