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