Cannot login to vSphere Server (reason: [500] Internal Server Error). Please check the credentials

Checkmk Cloud Edition 2.3.0p12
VMware ESXI 6.5

Problems with 1 datasource detected

CRIT [special_vsphere]: Agent exited with code 1: Cannot login to vSphere Server (reason: [500] Internal Server Error). Please check the credentials.CRIT
OK [piggyback]: Success (but no data found for this host)

I’m able to perfectly add few of my ESXi hosts, but on some hosts I’m getting this error. even though the password is correct.
Please help.

Did you check the firewall? Can you do a telnet on port 443 to those ESXI hosts from the CLI?
Did you set permissions to the CheckMK user in ESX?

Like my other servers which i successfully added into Checkmk hosts, this problematic servers’s ssh port is also 22.
And in CheckMk rules TCP port number is unchecked for all servers.

But ESXI is monitored through the web interface, not SSH. There is als no agent for Vmware’s photon OS afaik?
Please test if a telnet on port 443 works to the url. I guess it could also be DNS related if you use FQDN’s in your host configuration.

Edit: proton > photon

Welcome to the forum
i assume you can connect directly to the ESXi host that is failing? Also are you verifying the SSL cert? Do you have correct connectivity? Not using any proxy?

If some ESXi hosts works and others don’t first that comes to mind is credentials as you are not using AD here

Thanks Everyone for useful tips.
Idk what was the issue, but
1)moving vm host rule upwards in rules hierarchy.
2)Turning on SSH i ESXi which i again turned off after few minutes
Something from these resolved my issue. and all services of that problematic host were detected immediately.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.