Sometimes the service-broker stats plugin returns this error:UNKNOWN: Cannot decode json response: garbage after JSON object, at character offset 1917 (before ""compiled with qt":"...") at /usr/lib/centreon/plugins/centreon_centreon_central.pl line 279
Most of the times the check is ok but some times this error appears.
After searching on the web, I found that it may be caused by an error in the response which not return the expected json.
Tried with the debug option as suggested, but it do not give more information.
Command for the check is (and error answer):
/usr/lib/centreon/plugins/centreon_centreon_central.pl --plugin=apps::centreon::local::plugin --hostname=127.0.0.1 --mode=broker-stats --broker-stats-file='/var/lib/centreon-broker/central-broker-master-stats.json' --broker-stats-file='/var/lib/centreon-broker/central-rrd-master-stats.json' --broker-stats-file='/var/lib/centreon-engine/central-module-master-stats.json' --filter-name='' --warning-speed-events='' --critical-speed-events='' --warning-queued-events='' --critical-queued-events='' --warning-unacknowledged-events='' --critical-unacknowledged-events='' --warning-status='' --critical-status='%{type} eq "output" and %{queue_file_enabled} =~ /yes/i' --verbose --debug UNKNOWN: Cannot decode json response: garbage after JSON object, at character offset 1917 (before ""compiled with qt":"...") at /usr/lib/centreon/plugins/centreon_centreon_central.pl line 279.
Centreon version is
Centreon 19.10.23
(commit 13d8821f0)
I’d like to understand what causes this error.
Thanks
Luca