Question

Centreon 23.10 http Plugin errors


Badge +1

Hi Guys

I recently installed centreon 23.10, but I encounter the problem below when using the centreon_protocol_http.pl plugin, can you help me please?

 

 

 

/usr/lib/centreon/plugins//centreon_protocol_http.pl --plugin=apps::protocols::http::plugin --mode=json-content --hostname=10.163.151.107 --proto='' --port=''  --urlpath='/getCameraState' --header='Content-Type: text/xml;charset=UTF-8' --data='' --lookup='$.arguments' --threshold-value='count' --format-ok='JSON respond in order arguments, errorMessage, success is "%{values}"' --format-warning='JSON respond in order arguments, errorMessage, success is "%{values}"' --format-critical='JSON respond in order arguments, errorMessage, success is "%{values}"'  --warning-numeric='' --critical-numeric='' --warning-string='' --critical-string='!=Available' --port=8123 --insecure --proto=https --lookup='$.errorMessage' --lookup='$.success' --filter-perfdata='none'
UNKNOWN: Cannot load module --mode.

 

Errors : 


Can't locate Exporter/Easy.pm in @INC (you may need to install the Exporter::Easy module) (@INC contains: /usr/lib/centreon/plugins FatPacked::94633320169160=HASH(0x5611896ebec8) /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5) at /usr/local/share/perl5/JSON/Path/Constants.pm line 35.
BEGIN failed--compilation aborted at /usr/local/share/perl5/JSON/Path/Constants.pm line 35.
Compilation failed in require at /usr/local/share/perl5/JSON/Path/Evaluator.pm line 13.
BEGIN failed--compilation aborted at /usr/local/share/perl5/JSON/Path/Evaluator.pm line 13.
Compilation failed in require at /usr/local/share/perl5/JSON/Path.pm line 16.
BEGIN failed--compilation aborted at /usr/local/share/perl5/JSON/Path.pm line 16.
Compilation failed in require at /usr/lib/centreon/plugins//centreon_protocol_http.pl line 2397.
BEGIN failed--compilation aborted at /usr/lib/centreon/plugins//centreon_protocol_http.pl line 2397.
Compilation failed in require at /usr/lib/centreon/plugins//centreon_protocol_http.pl line 5550.
 

Thanks


5 replies

Badge +1

Hello rachidkh,

Can you show what OS you are using, and the exact plugin version ?

on deb like :

apt-cache policy centreon-plugin-applications-protocol-http

on rpm like :

dnf repoquery --installed --alldeps --whatrequires centreon-plugin-applications-protocol-http

Thanks

Userlevel 1
Badge +6

If you have cpan/cpanm installed try a “cpanm Exporter::Easy”?

 

Regards

Timo

Badge +1

hello evanadam

 

Plugin version : 

rpm -qa|grep centreon-plugin-Applications-Protocol-Http


centreon-plugin-Applications-Protocol-Http-20240411-123504.el8.noarch

 

OS : 

Red Hat Enterprise Linux release 8.9 (Ootpa)
 

Thanks

 

 

 

Badge +1

Thanks for the informations,

This is a compatilbity issue between alma8 and this lib : https://github.com/centreon/centreon-plugins/issues/4540#issuecomment-1630366561

we created the issue internally, and will process it as soon as we can.

In the meantime, as ta-ffm as said, you can install the missing dependancy with cpan or cpanm

Badge +1

Thank you for your response, I will try to install throuth cpan.

 

Reply