Skip to main content

hello, 

Do you know anything about the error ??

 

/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='default'  --esx-hostname='' --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=''


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::94625817124752=HASH(0x560fca375f90) /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.32.1 /usr/local/share/perl/5.32.1 /usr/lib/x86_64-linux-gnu/perl5/5.32 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl-base /usr/lib/x86_64-linux-gnu/perl/5.32 /usr/share/perl/5.32 /usr/local/lib/site_perl) at /usr/lib/x86_64-linux-gnu/perl5/5.32/ZMQ/LibZMQ4.pm line 6.
BEGIN failed--compilation aborted at /usr/lib/x86_64-linux-gnu/perl5/5.32/ZMQ/LibZMQ4.pm line 6.
Compilation failed in require at /usr/lib/centreon/plugins//centreon_vmware_connector_client.pl line 34.
BEGIN failed--compilation aborted at /usr/lib/centreon/plugins//centreon_vmware_connector_client.pl line 34.
Compilation failed in require at /usr/lib/centreon/plugins//centreon_vmware_connector_client.pl line 11935.

 

 

 

Hi @yassine 

It looks like there are a couple of issues going on with your command and environment:

1. **Unknown custom mode error**: The error message `UNKNOWN: Cannot load module --custommode.` suggests that the script is trying to load a module or plugin in custom mode but is unable to do so. This could be due to incorrect usage of the `--custommode` option or a missing module/plugin.

2. **ZMQ::Constants module missing**: The error message `Can't locate ZMQ/Constants.pm` indicates that the script is trying to use the ZMQ (ZeroMQ) Perl module, but it cannot find it in the Perl include path (`@INC`). This means that the ZMQ::Constants module is either not installed or not properly configured.

To address these issues:

1. **Custom mode error**: Make sure that you are using the `--custommode` option correctly and that the necessary module or plugin is properly installed and configured.

2. **ZMQ::Constants module missing**: You need to install the ZMQ::Constants module. You can do this using CPAN or your system's package manager. For example, if you're using `apt` on Debian-based systems, you can install it with:

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

   Adjust the package name and installation method according to your system's package manager if you're not using a Debian-based distribution.

After addressing these issues, try running the command again and see if it resolves the errors. If you continue to encounter issues, you may need to further troubleshoot or seek assistance from someone familiar with the specific software and environment you're working with.


Thank you, M. Lazar. I followed the required steps, and now I'm unable to start the `centreon_vmware.service`.

 

the service file » centreon_vmware.service


 

>Unit]
Description=Centreon VMware Monitoring
After=network.target

>Service]
Type=simple
ExecStart=/usr/lib/centreon/plugins/centreon_vmware_connector_client.pl
Restart=always
User=centreon
Group=centreon

>Install]
WantedBy=default.target


 

-rwxrwxrwx 1 root root  242 Feb  7 12:16 centreon_vmware.service

 


Hi there, maybe check on this topic :

 


Reply