centreon / centreon-vmware

Centreon VMWare connector to check ESX server, VCenter and VMWare guest resources

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vmware daemon failed to start: Can't locate centreon/class/cisTags.pm

philipraets opened this issue · comments

Hi,

on CentOs 7 with centreon 22.04 installed from rpm, the centreon_vmware service failed to start:

[root@centreon ~]# systemctl status -l centreon_vmware
● centreon_vmware.service - Centreon VMWare
   Loaded: loaded (/etc/systemd/system/centreon_vmware.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since di 2022-08-16 08:50:23 CEST; 1s ago
  Process: 1880 ExecStart=/usr/bin/perl /usr/bin/centreon_vmware.pl --logfile=/var/log/centreon/centreon_vmware.log --severity=error (code=exited, status=2)
 Main PID: 1880 (code=exited, status=2)

aug 16 08:50:23 centreon systemd[1]: Started Centreon VMWare.
aug 16 08:50:23 centreon perl[1880]: Can't locate centreon/class/cisTags.pm in @INC (@INC contains: /usr/lib64/perl5/libwww-perl-5.837/lib /usr/lib64/perl5 /usr/bin /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/share/perl5 .) at /usr/share/perl5/vendor_perl/centreon/vmware/cmddiscovery.pm line 28.
aug 16 08:50:23 centreon perl[1880]: BEGIN failed--compilation aborted at /usr/share/perl5/vendor_perl/centreon/vmware/cmddiscovery.pm line 28.
aug 16 08:50:23 centreon perl[1880]: Compilation failed in require at /usr/share/perl5/vendor_perl/centreon/script/centreon_vmware.pm line 276.
aug 16 08:50:23 centreon systemd[1]: centreon_vmware.service: main process exited, code=exited, status=2/INVALIDARGUMENT
aug 16 08:50:23 centreon systemd[1]: Unit centreon_vmware.service entered failed state.
aug 16 08:50:23 centreon systemd[1]: centreon_vmware.service failed.

It seems the rpm doesn't provide /usr/share/perl5/vendor_perl/centreon/class/cisTags.pm

I have tried to copy the class from github to the location on the server, but it still doesn't find it.
So I commented out the line in cmddiscovery.pm, and the service can start (I don't use discovery in centreon).

Greetings,

Philip

We are going to fix it

A new version is available. Could you update your package ?

I have updated the package, and restarted the daemon with success.

thanks for the feedback. i close it