Question

Esx_VMware plugins

  • 11 October 2023
  • 7 replies
  • 649 views

Badge +2

Hello

My centreon server is under debian 11 and I use Centreon version 23.04.8.

I have carefully followed the tutorial on the vmware plugin here https://docs.centreon.com/fr/pp/integrations/plugin-packs/procedures/virtualization-vmware2-esx/

and the file /etc/centreon/centreon_vmware.pm  seems to be well configured since I have feedback from my test esxi in centreon:

exemple: Esx-Health

OK: 0 total health issue(s) found - Host 'esxi-04.domain.lan' : status connected - 60 health checks are green, 60 total health issue(s) found, 0 yellow health issue(s) found, 0 red health issue(s) found - sensor 'System Board 1 Ambient Temp' temperature: 25 C - fan sensors are ok - sensor 'Power Supply 1 Voltage' voltage: 230 V

checking host 'esxi-04.domain.lan'

status connected

60 health checks are green, 60 total health issue(s) found, 0 yellow health issue(s) found, 0 red health issue(s) found

sensor 'System Board 1 Ambient Temp' temperature: 25 C
sensor 'System Board 1 FAN MOD 1A RPM' fan speed: 4440 rpm
sensor 'System Board 1 FAN MOD 1B RPM' fan speed: 3120 rpm
sensor 'System Board 1 FAN MOD 2A RPM' fan speed: 4440 rpm
sensor 'System Board 1 FAN MOD 2B RPM' fan speed: 3120 rpm
sensor 'System Board 1 FAN MOD 3A RPM' fan speed: 4440 rpm
sensor 'System Board 1 FAN MOD 3B RPM' fan speed: 3120 rpm
sensor 'System Board 1 FAN MOD 4A RPM' fan speed: 4440 rpm
sensor 'System Board 1 FAN MOD 4B RPM' fan speed: 3120 rpm
sensor 'System Board 1 FAN MOD 5A RPM' fan speed: 4440 rpm
sensor 'System Board 1 FAN MOD 5B RPM' fan speed: 3120 rpm
sensor 'Power Supply 1 Voltage' voltage: 230 V

in short, I'm getting the right feedback on the follow plugins:
Virt-VMWare2-ESX-Health-Generic-custom
Virt-VMWare2-ESX-Vm-Count-Generic-custom
Virt-VMWare2-ESX-Storage-Generic-custom
Base-Ping-Lan-custom
and the base Virt-VMWare2-ESX-custom.

But all these plugins
Virt-VMWare2-ESX-Cpu-Generic-custom
Virt-VMWare2-ESX-Datastores-Latency-Global-custom
Virt-VMWare2-ESX-Memory-Generic-custom
Virt-VMWare2-ESX-Status-Generic-custom
Virt-VMWare2-ESX-Swap-Generic-custom

return the following error:

Status information

UNKNOWN: Cannot get value for counters (Maybe, object(s) cannot be reached: disconnected, not running, time not synced (see time-host mode),...)

I can't find the source of the problem or how to correct it

Thank you in advance for your help


7 replies

Badge +2

Hello

I tried to solve the problem by changing the ntp configurations of my servers

They all now use servers 0.fr.pool.ntp.org and 1.fr.pool.ntp.org

now I have new errors which are:

UNKNOWN: Cannot get response (timeout received)
and another one on another esxi which is:
UNKNOWN: Cannot find 'HostSystem' object

exemple:

/usr/lib/centreon/plugins//centreon_vmware_connector_client.pl

--plugin=apps::vmware::connector::plugin
--mode=cpu-host
--custommode=connector
--connector-hostname='localhost'
--connector-port='5700'
--container='esxi-01'
--esx-hostname='esxi-01.domain.lan'
--unknown-status='%{status} !~ /^connected$/i'
--warning-status=''
--critical-status=''
--warning-total-cpu=''
--critical-total-cpu=''
--warning-total-cpu-mhz=''
--critical-total-cpu-mhz=''
--warning-cpu=''
--critical-cpu=''
--sampling-period=20

here's the error I got in /var/log/centreon/centreon_vmware.log

2023-10-13  - 'esxi-01' SOAP request error - possibly a protocol issue: Server closed connection without sending any data back at /usr/share/perl5/Net/HTTP/Methods.pm line 391.

 

However, the host and service settings are all identical between the 2 esxi monitored

how can these two problems be resolved?

thank you in advance

Badge +2

this problem seems to have been solved by configuring the esxi ntp service to connect to servers 0.fr.pool.ntp.org and 1.fr.pool.ntp.org.

So I've added another ESXI server, with exactly the same settings in centreon, but now I'm getting a new error on this esxi's monitoring, which is
UNKNOWN: Cannot find 'HostSystem' object

this is the configuration of my /etc/centreon/centreon_vmware.pm file

%centreon_vmware_config = (
vsphere_server => {
'Esxi-01' => {
'url' => 'https://172.16.0.142/sdk',
'username' => 'centreonRO',
'password' => 'XXXXXXXXXX'
},
'Esxi-02' => {
'url' => 'https://172.16.0.143/sdk',
'username' => 'centreonRO',
'password' => 'XXXXXXXXXX'
},
'Esxi-03' => {
'url' => 'https://172.16.0.144/sdk',
'username' => 'centreonRO',
'password' => 'XXXXXXXXXX'
},
'Esxi-04' => {
'url' => 'https://172.16.0.145/sdk',
'username' => 'centreonRO',
'password' => 'XXXXXXXXXX'
},
'Esxi-06' => {
'url' => 'https://172.16.0.146/sdk',
'username' => 'centreonRO',
'password' => 'XXXXXXXXXX'
},
},
port => 5700
);

1;

And in the CENTREONVMWARECONTAINER directive of my hosts in centreon I put esxi-01, esxi -02 or esxi-06, for example.

Thank you in advance for your help

Badge +2

this problem seems to have been solved by configuring the esxi ntp service to connect to servers 0.fr.pool.ntp.org and 1.fr.pool.ntp.org.

So I've added another ESXI server, with exactly the same settings in centreon, but now I'm getting a new error on this esxi's monitoring, which is
UNKNOWN: Cannot find 'HostSystem' object

this is the configuration of my /etc/centreon/centreon_vmware.pm file

%centreon_vmware_config = (
vsphere_server => {
'Esxi-01' => {
'url' => 'https://172.16.0.142/sdk',
'username' => 'centreonRO',
'password' => 'XXXXXXXXXX'
},
'Esxi-02' => {
'url' => 'https://172.16.0.143/sdk',
'username' => 'centreonRO',
'password' => 'XXXXXXXXXX'
},
'Esxi-03' => {
'url' => 'https://172.16.0.144/sdk',
'username' => 'centreonRO',
'password' => 'XXXXXXXXXX'
},
'Esxi-04' => {
'url' => 'https://172.16.0.145/sdk',
'username' => 'centreonRO',
'password' => 'XXXXXXXXXX'
},
'Esxi-06' => {
'url' => 'https://172.16.0.146/sdk',
'username' => 'centreonRO',
'password' => 'XXXXXXXXXX'
},
},
port => 5700
);

1;

And in the CENTREONVMWARECONTAINER directive of my hosts in centreon I put esxi-01, esxi -02 or esxi-06, for example.

Thank you in advance for your help

Badge +2

more information if it's useful

this is the configuration of my /etc/centreon/centreon_vmware.pm file

%centreon_vmware_config = (
vsphere_server => {
'Esxi-01' => {
'url' => 'https://172.16.0.142/sdk',
'username' => 'centreonRO',
'password' => 'XXXXXXXXXX'
},
'Esxi-02' => {
'url' => 'https://172.16.0.143/sdk',
'username' => 'centreonRO',
'password' => 'XXXXXXXXXX'
},
'Esxi-03' => {
'url' => 'https://172.16.0.144/sdk',
'username' => 'centreonRO',
'password' => 'XXXXXXXXXX'
},
'Esxi-04' => {
'url' => 'https://172.16.0.145/sdk',
'username' => 'centreonRO',
'password' => 'XXXXXXXXXX'
},
'Esxi-06' => {
'url' => 'https://172.16.0.146/sdk',
'username' => 'centreonRO',
'password' => 'XXXXXXXXXX'
},
},
port => 5700
);

1;

 

And in the CENTREONVMWARECONTAINER directive of my hosts in centreon I put esxi-01, esxi -02 or esxi-06, for example.

Thank you in advance for your help

Badge +2

more information if it's useful, this is the configuration of my /etc/centreon/centreon_vmware.pm file

%centreon_vmware_config = (
        vsphere_server => {
                        'Esxi-01' => {
                                     'url' => 'https://172.16.0.142/sdk',
                                     'username' => 'centreonRO',
                                     'password' => 'XXXXXXXXXX'
                        },
                        'Esxi-02' => {
                                     'url' => 'https://172.16.0.143/sdk',
                                     'username' => 'centreonRO',
                                     'password' => 'XXXXXXXXXX'
                        },
                        'Esxi-03' => {
                                     'url' => 'https://172.16.0.144/sdk',
                                     'username' => 'centreonRO',
                                     'password' => 'XXXXXXXXXX'
                        },
                        'Esxi-04' => {
                                     'url' => 'https://172.16.0.145/sdk',
                                     'username' => 'centreonRO',
                                     'password' => 'XXXXXXXXXX'
                        },
                        'Esxi-06' => {
                                     'url' => 'https://172.16.0.146/sdk',
                                     'username' => 'centreonRO',
                                     'password' => 'XXXXXXXXXX'
                        },
},
port => 5700
);

1;

Badge +2

sorry for the repeated posts, I have no idea what happened

I still haven't found a solution to my error problem: UNKNOWN: Cannot find 'HostSystem' object

thanks for your help.

Badge +2

The problem is finally solved

centreon is sensitive to the shift key

Here's the solution in case this problem happens to someone else

I realized that in centreon the esxi server was named esxi-01.domain.lan but that in the hosts file it was written ESXI-01.domain.lan despite the fact that during installation I had written the server name in lower case.

I corrected this in esxi with the command
esxcli system hostname set --host=hostname

and, as if by black magic, everything was suddenly unblocked.

 

Reply