Skip to main content

Hi there,

I’m trying to monitor VMWare Vshepre on premise infrastructure.

I just followed this topic : https://docs.centreon.com/fr/pp/integrations/plugin-packs/procedures/virtualization-vmware2-esx/

This just worked for a couple of days and suddenly with no explainable reason didnt !

I get an error when configuring the connector :

UNKNOWN: Container connection problem 

I had a look into /var/log/centreon/centreon_vmware.log and just got this error :


default' Login to VirtualCenter server failed: Server version '' at 'https://myvcenterserver:443/sdk/vimService.wsdl' unsupported.

My current Centreon Version is 22.04 (tried with 22.10 too and didnt worked)

My VSphere infrastructure runs 7.0.3 version (vcenter servers ans ESXi

Does anyone can help me ?

Thanks

Hi,

i have the same message because an admin change vcenter name. if your vcenter not change.

You can try:

re-enter password in your vcenter and check again

 


Hi @bannavong thanks for answer

Unfortunatly no change in vcenter name and i tried to re-enter password too

Connecting directly to esxi hosts using local credentials works


first thing first, does this url in you error message anwser and display the xml webservice in a browser

and can you curl/wget it from your poller?

in a browser, without needing a password

curl -k https://myvcenterserver/sdk/vimService.wsdl   (I removed :443)

this is the same output on vcenter 6 or 7 and contains no relevant information except “yes it a vcenter”

 

if this not that output, check you dns resolution, check your services on vcenter

try curl the same path but with the ip address instead of the dns name 

curl -k https://1.2.3.4/sdk/vimService.wsdl   

 

can you also paste your /etc/centreon/centreon_vmware.pm file (hide your password)

I mainly need to see which url you have setup for the ‘default’ vcenter you should have something like that :

{'url' => 'https://myvcenterser:443/sdk',

 

try without :443

{'url' => 'https://myvcenterserver/sdk',

or the ip

{'url' => 'https://1.2.3.4/sdk',

(note there is nothing after /sdk in the uri)

 

remember to restart your daemon/service “centreon_vmware” on the poller after each modification of the config file

(I also suggest you purge/move the log file each time, as there is no timestamp in the log, it’s hard to debug, or open 2 shell, one with tail -f of the log and one to restart the service)

 

there may also be issue with the login/password itself, account locked out or expired, or a change in role/attribution on the vcenter

 


first thing first, does this url in you error message anwser and display the xml webservice in a browser

and can you curl/wget it from your poller?

in a browser, without needing a password

curl -k https://myvcenterserver/sdk/vimService.wsdl   (I removed :443)

this is the same output on vcenter 6 or 7 and contains no relevant information except “yes it a vcenter”

 

if this not that output, check you dns resolution, check your services on vcenter

try curl the same path but with the ip address instead of the dns name 

curl -k https://1.2.3.4/sdk/vimService.wsdl   

 

can you also paste your /etc/centreon/centreon_vmware.pm file (hide your password)

I mainly need to see which url you have setup for the ‘default’ vcenter you should have something like that :

{'url' => 'https://myvcenterser:443/sdk',

 

try without :443

{'url' => 'https://myvcenterserver/sdk',

or the ip

{'url' => 'https://1.2.3.4/sdk',

(note there is nothing after /sdk in the uri)

 

remember to restart your daemon/service “centreon_vmware” on the poller after each modification of the config file

(I also suggest you purge/move the log file each time, as there is no timestamp in the log, it’s hard to debug, or open 2 shell, one with tail -f of the log and one to restart the service)

 

there may also be issue with the login/password itself, account locked out or expired, or a change in role/attribution on the vcenter

 

I also having problem with this plugin.

/var/log/centreon/centreon_vmware.log
2023-04-20 22:13:24 - 'xxxxxx' Login to VirtualCenter server failed: Server version unavailable at 'https://x.x.x.x:443/sdk/vimService.wsdl' at /usr/local/share/perl5/VMware/VICommon.pm line 734.

 

tried both using ip address and resolution.

 

also tried curl command and result same as yours.

 

What should we do to resolve this one?


mmh has there been a change in the centreon daemon? 

can you type rpm -qa | grep -i virt

 

my output is this : centreon-plugin-Virtualization-VMWare-daemon-3.2.5-20220816072422.el7.centos.noarch (I have not updated in a while)

can you check your version? (and if you have a version different 3.2.5  try installing this one, I know it works for me)

 

but frankly, if the daemon does not work and you did everything correctly i advise both of you to contact the support

 

could you also post what I asked : the config file .pm (masking just the password)


Hi,

 

I got centreon-plugin-Virtualization-VMWare-daemon-3.2.4-20220517103908.el7.centos.noarch

 

how can I update it? tried to update my plugin still same version installed.

 

Im kinda noob in this thing.

 

Thank you for response

 


have you tried what it says in the doc VMware vCenter v6 | Centreon Documentation

Install this daemon on each needed poller:

yum install centreon-plugin-Virtualization-VMWare-daemon

yes I tried that. Im thinking need to update my centreon-engine for both of my pollers and central server. Im running with 

Centreon Engine 21.10.2

 

might need to udpate this on first before I update it to 3.2.5 

 


possibly

I looked at the daemon https://github.com/centreon/centreon-vmware 

3.2.5 is the latest from august last year, I wouldn’t advise you to try and install it manually on your poller, but a few things seems to have been changed between 3.2.4 and 3.2.5 (like ssl connexion options) so maybe it’s that (there are also some perl vmware sdk modifications, for vmware7, i don’t talk git well enough to understand all, except to see that there were changes)

 

you could try to make a new poller from scratch (new alma 8 vm with the install script), no need to plug it to your existing setup, just install the vmware daemon and try to see if it run before upgrading your full setup

here are a few commands to install a 22.04 poller from scratch on alma8 (basic server install, no packages needed)

curl -L -s https://raw.githubusercontent.com/centreon/centreon/22.04.x/centreon/unattended.sh > install.sh

chmod +x install.sh

./install.sh install -t poller

then  yum install centreon-plugin-Virtualization-VMWare-daemon and try your config file


Hi @FDM31 did the solution you got from this conversation work for you? If yes, could you do us a solid and mark the answer that helped you as the "Best Answer"? That way, other folks who encounter the same issue can find the fix in a jiffy. Thanks 😉


Hello, Same for me the vmware daemon is not found on Centreon 23.04 OS: AlmaLinux 9 :

https://docs.centreon.com/fr/pp/integrations/plugin-packs/procedures/virtualization-vmware2-esx/


Hi @L3eO,

Sorry for that! We are going to fix it.


Hi @L3eO,

Sorry for that! We are going to fix it.

Hi @omercier

 

Do you have any idea when it will be fixed ?

 

Kélian


Same problem with Redhat 9 / Centreon 23.04.Still no date for a solution?

Hi, I can’t give you a release date, but the task is in progress.


Hi @omercier ,

 

Do you have any updates about this pls ? 

 

Kélian


Hi @Kélian 

Sorry, it has been fixed since then. Can you try again?


Hi @Kélian 

Sorry, it has been fixed since then. Can you try again?

Ok i’ll try, during my OS migration tests


Hi @Kélian 

Sorry, it has been fixed since then. Can you try again?

Hi @omercier,

 

Thanks, it works on Alma Linux 9 now :)  


Hello, I have the next problem:

tail -f /var/log/centreon/centreon_vmware.log

[2024-10-31 17:27:33] [error] 'default' Login to VirtualCenter server failed: Server version '' at 'https://192.168.9.5:5480/sdk/vimService.wsdl' unsupported.
 

vSphere Client versión 8.0.1.00000

vSphere 8 Standard 1

 

 

Última comprobación de caducidad de metadatos hecha hace 0:15:03, el jue 31 oct 2024 17:25:02.
Paquetes instalados
Nombre       : centreon-plugin-Virtualization-VMWare-daemon
Versión      : 3.3.2
Lanzamiento  : 1.el9
Arquitectura : noarch
Tamaño       : 310 k
Fuente       : centreon-plugin-Virtualization-VMWare-daemon-3.3.2-1.el9.src.rpm
Repositorio  : @System
Desde repo   : centreon-plugins-24.04-stable-noarch
Resumen      : Perl daemon to monitor VSphere Infrastructure
URL          : https://centreon.com
Licencia     : Apache-2.0
Descripción  : Perl daemon to monitor VSphere Infrastructure
             : Commit: 86eb3dafafb216725e7aab45a049012d5fd042b4

Nombre       : centreon-plugin-Virtualization-Vmware2-Connector-Plugin
Versión      : 20241010
Lanzamiento  : 130148.el9
Arquitectura : noarch
Tamaño       : 697 k
Fuente       : centreon-plugin-Virtualization-Vmware2-Connector-Plugin-20241010-130148.el9.src.rpm
Repositorio  : @System
Desde repo   : centreon-plugins-24.04-stable-noarch
Resumen      : centreon-plugin-Virtualization-Vmware2-Connector-Plugin
URL          : https://centreon.com
Licencia     : Apache-2.0
Descripción  : centreon-plugin-Virtualization-Vmware2-Connector-Plugin
             : Commit: 4639a10adb264e0c8fa1b7c75d6b35bcc1fa7f58


Best Regards,  Miguel


Hi,

 

URL is https://192.168.9.5:5480/sdk  , nothing after /sdk.

 

 


The string connect is:

 

>root@vLCENTREON-00-E01 centreon]# cat centreon_vmware.pm

%centreon_vmware_config = (
        vsphere_server => {
                        'default' => {'url' => 'https://192.168.9.5:5480/sdk',
                                     'username' => 'xxxxxxxx',
                                     'password' => 'xxxxxxx'}
                        }
);
 


The problem is up.

 

>2024-11-05 09:44:01] error] 'default' Login to VirtualCenter server failed: Server version '' at 'https://vcenter-00-02.interno.cedex.es:5480/sdk/vimService.wsdl' unsupported.
 


[root@vLCENTREON-00-E01 centreon]# dnf info centreon-plugin\*vmware*
Última comprobación de caducidad de metadatos hecha hace 0:32:37, el mar 05 nov 2024 09:16:59.
Paquetes instalados
Nombre       : centreon-plugin-Virtualization-VMWare-daemon
Versión      : 3.3.2
Lanzamiento  : 1.el9
Arquitectura : noarch
Tamaño       : 310 k
Fuente       : centreon-plugin-Virtualization-VMWare-daemon-3.3.2-1.el9.src.rpm
Repositorio  : @System
Desde repo   : centreon-plugins-24.04-stable-noarch
Resumen      : Perl daemon to monitor VSphere Infrastructure
URL          : https://centreon.com
Licencia     : Apache-2.0
Descripción  : Perl daemon to monitor VSphere Infrastructure
             : Commit: 86eb3dafafb216725e7aab45a049012d5fd042b4

Nombre       : centreon-plugin-Virtualization-Vmware2-Connector-Plugin
Versión      : 20241010
Lanzamiento  : 130148.el9
Arquitectura : noarch
Tamaño       : 697 k
Fuente       : centreon-plugin-Virtualization-Vmware2-Connector-Plugin-20241010-130148.el9.src.rpm
Repositorio  : @System
Desde repo   : centreon-plugins-24.04-stable-noarch
Resumen      : centreon-plugin-Virtualization-Vmware2-Connector-Plugin
URL          : https://centreon.com
Licencia     : Apache-2.0
Descripción  : centreon-plugin-Virtualization-Vmware2-Connector-Plugin
             : Commit: 4639a10adb264e0c8fa1b7c75d6b35bcc1fa7f58

Paquetes disponibles
Nombre       : centreon-plugin-Applications-Vmware-Vcsa-Restapi
Versión      : 20241010
Lanzamiento  : 130148.el9
Arquitectura : noarch
Tamaño       : 57 k
Fuente       : centreon-plugin-Applications-Vmware-Vcsa-Restapi-20241010-130148.el9.src.rpm
Repositorio  : centreon-plugins-24.10-stable-noarch
Resumen      : centreon-plugin-Applications-Vmware-Vcsa-Restapi
URL          : https://centreon.com
Licencia     : Apache-2.0
Descripción  : centreon-plugin-Applications-Vmware-Vcsa-Restapi
             : Commit: 4639a10adb264e0c8fa1b7c75d6b35bcc1fa7f58

Nombre       : centreon-plugin-Applications-Vmware-Vcsa-Snmp
Versión      : 20241010
Lanzamiento  : 130148.el9
Arquitectura : noarch
Tamaño       : 85 k
Fuente       : centreon-plugin-Applications-Vmware-Vcsa-Snmp-20241010-130148.el9.src.rpm
Repositorio  : centreon-plugins-24.10-stable-noarch
Resumen      : centreon-plugin-Applications-Vmware-Vcsa-Snmp
URL          : https://centreon.com
Licencia     : Apache-2.0
Descripción  : centreon-plugin-Applications-Vmware-Vcsa-Snmp
             : Commit: 4639a10adb264e0c8fa1b7c75d6b35bcc1fa7f58

Nombre       : centreon-plugin-Cloud-Vmware-Velocloud-Restapi
Versión      : 20241010
Lanzamiento  : 130148.el9
Arquitectura : noarch
Tamaño       : 61 k
Fuente       : centreon-plugin-Cloud-Vmware-Velocloud-Restapi-20241010-130148.el9.src.rpm
Repositorio  : centreon-plugins-24.10-stable-noarch
Resumen      : centreon-plugin-Cloud-Vmware-Velocloud-Restapi
URL          : https://centreon.com
Licencia     : Apache-2.0
Descripción  : centreon-plugin-Cloud-Vmware-Velocloud-Restapi
             : Commit: 4639a10adb264e0c8fa1b7c75d6b35bcc1fa7f58

Nombre       : centreon-plugin-Virtualization-Vmware2-Esx-Wsman
Versión      : 20241010
Lanzamiento  : 130148.el9
Arquitectura : noarch
Tamaño       : 63 k
Fuente       : centreon-plugin-Virtualization-Vmware2-Esx-Wsman-20241010-130148.el9.src.rpm
Repositorio  : centreon-plugins-24.10-stable-noarch
Resumen      : centreon-plugin-Virtualization-Vmware2-Esx-Wsman
URL          : https://centreon.com
Licencia     : Apache-2.0
Descripción  : centreon-plugin-Virtualization-Vmware2-Esx-Wsman
             : Commit: 4639a10adb264e0c8fa1b7c75d6b35bcc1fa7f58
 


 Hi ​@Miguel Angel,

vSphere 8 does not support the Perl SDK anymore, so the vmware daemon won’t work with it.

We have started working on new plugins that will use the v8 REST API but it will take some time. You may soon try the first limited features but complete monitoring connectors won’t be available before Q1 2025.

 


Reply