Skip to main content

hello Guys,

Could you check this issue. Maybe its nothing new…

After I run

 /usr/lib/centreon/plugins//centreon_protocol_http.pl --plugin=apps::protocols::http::plugin --mode=json-content --hostname=10.140.140.105 --proto='http' --port='80'  --urlpath='/xx/xx/monitors.json' --header='Content-Type: text/xml' --data='' --lookup='' --threshold-value='count' --format-ok='%{count} element(s) found' --format-warning='%{count} element(s) found' --format-critical='%{count} element(s) found'  --warning-numeric='' --critical-numeric='' --warning-string='' --critical-string='' 

 

I get this error 

Status information

UNKNOWN: Cannot load module --mode.

Could not find sub '$TOKEN_ROOT' exported by JSON::Path::Constants at /usr/local/share/perl5/JSON/Path/Evaluator.pm line 11.

BEGIN failed--compilation aborted at /usr/local/share/perl5/JSON/Path/Evaluator.pm line 11.

Compilation failed in require at /usr/local/share/perl5/JSON/Path.pm line 14.

BEGIN failed--compilation aborted at /usr/local/share/perl5/JSON/Path.pm line 14.

Compilation failed in require at /usr/lib/centreon/plugins//centreon_protocol_http.pl line 2301.

BEGIN failed--compilation aborted at /usr/lib/centreon/plugins//centreon_protocol_http.pl line 2301.

Compilation failed in require at /usr/lib/centreon/plugins//centreon_protocol_http.pl line 5449.

 

When Im trying run this plugin from CLI it looks like that:

 

Marcin 

Could some one from Centreon confirm that this plugin is working? 

Im using 

Centreon 23.04.4

on 

Oracle Linux Server 8.8

Linux 5.15.0-102.110.5.1.el8uek.x86_64

 

here I tried to run hellp.

 


 

 

 

Marcin 


https://github.com/centreon/centreon-plugins/issues/4540


Hi,

To solve the problem, we downgraded the JSON Path like this :

 rpm -e --nodeps perl-JSON-Path-1.0.3-1.el8.noarch
 dnf install perl-JSON-Path.noarch

And installed version is now OK
perl-JSON-Path             noarch             0.5-2.el8                       centreon-23.04-stable-noarch

 

But since then one can’t upgrade the product since there’s an dependency problem :
Error:

 Problem: cannot install the best update candidate for package centreon-plugin-Applications-Protocol-Jmx-20230511-111529.el8.noarch

  - nothing provides perl(JSON::Path) needed by centreon-plugin-Applications-Protocol-Jmx-20230706-100638.el8.noarc

The only way is to exclude the package of the plugin
dnf update --exclude=centreon-plugin-Applications-Protocol-Jmx.noarch

 

Has Centreon planned to solve this depency problem int the product repository ?

Regards


Hi,

We just did an update and we noticed that the problem still exists. Have you had time to look for a solution?

Regards


Hi,

You can downgrade the package using only a DNF command:

dnf downgrade perl-JSON-Path --enablerepo=centreon\*-stable\*

This should install version 0.5 from Centreon repositories (when I’m writing this lines, on EL8).

Quentin suggested that the 1.0.3 version could be removed from EL8 repositories but it is still here (cc @ponchoh @omercier)


Reply