centreon-plugins icon indicating copy to clipboard operation
centreon-plugins copied to clipboard

[apps::vmware::connector::plugin]: On Debian 11 - Vsan is not enabled in vmware connector

Open grosbedos opened this issue 2 years ago • 3 comments

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:

  • perl-vmware-vsphere/bullseye,now 7.0.0-17698549 (from centreon repository)
  • vsan perl sdk 7
  • centreon-plugin-virtualization-vmware-daemon/bullseye,now 3.2.5-122120
  • perl 5.32

Can you help me ?

Best regard

grosbedos avatar Feb 06 '24 14:02 grosbedos

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.

lucie-tirand avatar Jul 10 '24 08:07 lucie-tirand

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.

grosbedos avatar Jul 24 '24 14:07 grosbedos

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.

lucie-tirand avatar Jul 25 '24 12:07 lucie-tirand