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
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
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
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
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;
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.
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.