Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error connector with centreon_vmware_connector_client.pl #5281

Open
NTIC94130 opened this issue Nov 8, 2024 · 1 comment
Open

Error connector with centreon_vmware_connector_client.pl #5281

NTIC94130 opened this issue Nov 8, 2024 · 1 comment

Comments

@NTIC94130
Copy link

Thank you for using Centreon plugins!

Please use this form for actual bugs only. See Other requests for more details.
All existing and future issues related to questions, new plugins or enhancements will be closed.

Bug report

After migration from debian 11 to debian 12 bookworm and upgrading centreon from 24.04.7 to 24.10, i got this error with the plugin esxi and vcenter : centreon_vmware_connector_client.pl

UNKNOWN: Cannot load module --custommode.

Can't locate ZMQ/Constants.pm in @inc (you may need to install the ZMQ::Constants module) (@inc contains: /usr/lib/centreon/plugins FatPacked::93992349264784=HASH(0x557c4c96eb90) /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/local/lib/x86_64-linux-gnu/perl/5.36.0/ZMQ/LibZMQ4.pm line 6.

BEGIN failed--compilation aborted at /usr/local/lib/x86_64-linux-gnu/perl/5.36.0/ZMQ/LibZMQ4.pm line 6.

After installing:

sudo apt-get install libzmq3-dev
sudo cpan ZMQ::Constants

I got a new error with UUID.pm

so i have installed : cpan UUID

And now i have a message : time connexion error

I have this error for all probes on esxi and vcenter

How to reproduce

Please provide below the initial conditions to reproduce the bug

  • Environment:

Linux srvcentreon 6.1.0-26-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.112-1 (2024-09-30) x86_64 GNU/Linux
Debian 12.7
PHP 8.2

Monitored resource:

ESXI
and VCCENTER

Command line:

/usr/lib/centreon/plugins//centreon_vmware_connector_client.pl --plugin=apps::vmware::connector::plugin --mode=cpu-cluster --custommode=connector --connector-hostname='localhost' --connector-port='5700' --container='zeus' --cluster-name='.*' --filter --warning-total-cpu='' --critical-total-cpu='' --warning-total-cpu-mhz='' --critical-total-cpu-mhz='' --verbose --time-shift=4000

or

/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='hades' --esx-hostname='HADES.hdv.local' --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='' --time-shift=100

Expected result

Esx-cpu running

Actual result

UNKNOWN: Cannot load module --custommode.

Can't locate ZMQ/Constants.pm in @inc (you may need to install the ZMQ::Constants module) (@inc contains: /usr/lib/centreon/plugins FatPacked::94047597611648=HASH(0x558929a5ca80) /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.36.0 /usr/local/share/perl/5.36.0 /usr/lib/x86_64-linux-gnu/perl5/5.36 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.36 /usr/share/perl/5.36 /usr/local/lib/site_perl) at /usr/local/lib/x86_64-linux-gnu/perl/5.36.0/ZMQ/LibZMQ4.pm line 6.

BEGIN failed--compilation aborted at /usr/local/lib/x86_64-linux-gnu/perl/5.36.0/ZMQ/LibZMQ4.pm line 6.

Other requests

Questions

@omercier
Copy link
Contributor

Hi @NTIC94130
The ZMQ/Constants.pm library comes with libzmq-constants-perl which is provided by our plugins repo. Make sure you have this in your APT sources:

deb https://packages.centreon.com/apt-plugins-stable/ bookworm main

And then:

apt update && apt install libzmq-constants-perl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants