centreon / centreon-vmware

Centreon VMWare connector to check ESX server, VCenter and VMWare guest resources
Apache License 2.0
28 stars 16 forks source link

Does the plugin work with vSphere 7 ? #126

Closed coucou2000 closed 1 year ago

coucou2000 commented 1 year ago

Hi,

When i deployed it with my vsphere 7 infra, i got the following errors :

UNKNOWN: Cannot find 'HostSystem' object

On the log :

'default' SOAP request error - possibly a protocol issue: Status read failed: at /usr/share/perl5/vendor_perl/Net/HTTP/Methods.pm line 282.

Another question, what version of VSphere Perl SDK should i install ?

Thanks for your help !

coucou2000 commented 1 year ago

any return ?

garnier-quentin commented 1 year ago

Could you test the daemon with mode getmap ? (to see the esx, virtual machines)

coucou2000 commented 1 year ago

I got the same error : UNKNOWN: Cannot find 'HostSystem' object

FYI, i tried with Perl SDK 6.7 and 7.02.

coucou2000 commented 1 year ago

After several tests, getmap works, when i deleted the --esx-hostname parameter

garnier-quentin commented 1 year ago

And you should identify the right esx hostname

coucou2000 commented 1 year ago

And you should identify the right esx hostname

When i add the right esx hostname to the command, i got the "Cannot find 'HostSystem' object" error, below is the command i run

/usr/lib/centreon/plugins//centreon_vmware_connector_client.pl --plugin=apps::vmware::connector::plugin --mode=getmap --custommode=connector --connector-hostname='localhost' --connector-port='5700' --container='default' --esx-hostname='myhostname.mydomain'

garnier-quentin commented 1 year ago

Could you show me the getmap output ? (without --esx-hostname option)

coucou2000 commented 1 year ago

something like this :

List ESX host(s): host1.mydomain [v7.0.3] : vm1 [poweredOn] vm2 [poweredOn] vm3 [poweredOn]
host2.mydomain [v7.0.3] : vm4 [poweredOn] vm5 [poweredOn] vm6 [poweredOn]

garnier-quentin commented 1 year ago

So it should work with the hostname host1.mydomain

coucou2000 commented 1 year ago

yes that is what i did, but no luck. and i also tried with the IP adresses of the hosts, i got the same issue

coucou2000 commented 1 year ago

it works ! the hostname is case sensitive ! SORRY

garnier-quentin commented 1 year ago

Great! There is an option in the daemon to set case insensitive: case_insensitive => 1

coucou2000 commented 1 year ago

Thanks much, I hadn't thought of that, since it's just a dns name.

Now, almost everything works. I just have an issue on the host-memory mode :

UNKNOWN: Cannot get counter 'mem.state.latest' for the sampling period '300' (counter level: 2, sampling level: 1)

Do you have an idea ?

garnier-quentin commented 1 year ago

Check the help you'll see an option ;)

coucou2000 commented 1 year ago

got it , thanks 💯