centreon / centreon-plugins

Collection of standard plugins to discover and gather cloud-to-edge metrics and status across your whole IT infrastructure.
https://www.centreon.com
Apache License 2.0
310 stars 274 forks source link

Debian 11 [apps::vmware::connector::plugin] Vsan is not enabled in vmware connector #4884

Open grosbedos opened 6 months ago

grosbedos commented 6 months ago

Hi,

I'm not able to monitor vsan with a debian 11. The plugin says : Vsan is not enabled in vmware connector

I have of course tried the issue 1785:

Search for the file VIM25Runtime.pm ==> /usr/share/perl5/VMware/VIM25Runtime.pm

I copied the files VIM25VsanmgmtStub.pm and VIM25VsanmgmtRuntime.pm to /usr/share/perl5/VMware/ (this is /usr/local/share/perl5/VMware under RHEL).

restart the centreon_vmware daemon

The plugin still says vsan is not enabled: UNKNOWN: Vsan is not enabled in vmware connector

So I added the option: vsan_sdk_path => '/usr/share/perl5/VMware/' in /etc/centreon/centreon_vmware.pm

After that, when i restart the centreon_vmware daemon, they are error in the log file :

Use of uninitialized value $id in concatenation (.) or string at /usr/share/perl5/VMware/VICommon.pm line 2336.
Use of uninitialized value $id in concatenation (.) or string at /usr/share/perl5/VMware/VICommon.pm line 2336.
2024-02-06 14:28:23 - 'MYVCENTER' 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.
2024-02-06 14:28:31 - 'MYESX' SOAP request error - possibly a protocol issue: Status read failed:  at /usr/share/perl5/Net/HTTP/Methods.pm line 282.
Can't load class 'vim25:NotAuthenticated' at /usr/share/perl5/VMware/VIMRuntime.pm line 52.
Can't load class 'vim25:NotAuthenticated' at /usr/share/perl5/VMware/VIMRuntime.pm line 52.

And the vmware connector doesn't work anymore.

Environment:

Can you help me ?

Best regard

lucie-dubrunfaut commented 1 month ago

Hello :)

I'm not sure to understand if your plugin was working at a moment or if it never worked? I tried to trace the call of functions that could lead to the output Vsan is not enabled in vmware connector and assuming you moved the files as indicated, ensuring that they had opening rights. I think I see where the class call did not work (here) but I need to do further research and consult with the development team to understand better this part.

grosbedos commented 4 weeks ago

Hi,

The vmware connector is working, but not for vsan. (for example, i can monitor the cpu-cluster)

If i add the option: vsan_sdk_path => '/usr/share/perl5/VMware/' in /etc/centreon/centreon_vmware.pm, the vmware connector doesn't work anymore, nor for cpu, nor vsan.

Best regards.

lucie-dubrunfaut commented 4 weeks ago

Hello :)

Thank you for this feedback, we have taken note of this information and opened the associated procedure, we will inspect the problem and come back to you when we know more about it.