Question

ESX UNKNOWN: Container connection problem

  • 12 April 2024
  • 6 replies
  • 63 views

Badge +1

Hello,

I'm trying to set up monitoring for an ESX server and I've encountered some difficulties that I'd like to share here to get some help.

I've installed the Vmware ESX plugin and configured the container as follows:
 


When executing the command: /usr/lib/centreon/plugins/centreon_vmware_connector_client.pl --plugin=apps::vmware::connector::plugin --custommode=connector --connector-hostname=127.0.0.1 --container=default --verbose --mode=tools-vm -- display-description --vm-hostname='vxr1-witness' --filter

 

I get the following error message: UNKNOWN: Container connection problem.

I also checked the Centreon interface, where I receive the same error message :

 

Additionally, it's worth mentioning that the ping to the ESX server is functioning properly :
 


The user configured in the container is an administrator, so it doesn't seem to be a permissions issue.

Checking the logs in /var/log/centreon/centreon_vmware.log, I found the following lines:



Use of uninitialized value $server_from_url in transliteration (tr///) at /usr/local/lib64/perl5/VMware/VICommon.pm line 465.
2024-04-11 12:14:14 - 'default' Login to VirtualCenter server failed: Can't call method "getChildrenByTagName" on an undefined value at /usr/local/lib64/perl5/VMware/VICommon.pm line 2383.

I also tried recreating a new user on our ESX, but the problem persists. I'm at a loss as to how to resolve this issue. Has anyone here encountered this problem before or have any ideas on what might be wrong with my configuration?

Thanks in advance for your help and have a great day!

​​​​​​​


6 replies

Userlevel 5
Badge +11

Hello,

Does you ESX url on the conf file has “/sdk” at the end?

 

Badge +1

Hello Vcoum,

No, the configuration link did not contain /sdk at the end. I just tried it, but it didn't work.
Additionally, when I test my ESX URL on the web with /sdk at the end, it is not reachable.


 


 


However, if I don't put /sdk at the end, the web page is reachable.
 

Userlevel 6
Badge +18

So @regis_shr you put /sdk at the end and restart centreon_vmware process without success?

Userlevel 1
Badge +4

Hello,
Can you please try with ESX IP instead of URL.
Example:- url =>’https://10.#.#.#/sdk’, 
and i think config file is case sensitive, make sure your url is in small later.

also try with same host name and container name.
 

Badge +1

Hello @Cm123,

I tested by adding the URL: ==> https://10.XX.XX.XX/sdk and https://10.XX.XX.XX/ (without /sdk). The issue remains the same. I modified the configuration using the same hostname, but it's still the same thing.



I still wonder about the configuration of my ESX because when I connect to it with /sdk, it doesn't lead me anywhere. However, just with the IP, I land on my ESX correctly.
What is the purpose of /sdk?

 


@Laurent  I added /sdk at the end but it didn't work, and my ESX is also not reachable with /sdk from the web. Could I have a configuration issue with my ESX perhaps?

Userlevel 6
Badge +18

you certificat look like not valid, may be it could be the root cause

Reply