Skip to main content
Hello, I am trying to set up office 365 monitoring and when logging in to the user I have the following error that appears when I want to list the services with the command

perl centreon_plugins.pl --plugin=cloud::microsoft::office365::management::plugin --mode=list-services --tenant='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' --client-id='xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx' --client-secret='xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx’

 

UNKNOWN: Cannot decode json response: malformed JSON string, neither tag, array, object, number, string or atom, at character offset 0 (before "<!DOCTYPE html PUBLI...") at /usr/lib/nagios/plugins/centreon-plugins/cloud/microsoft/office365/custom/managementapi.pm line 180.

Here is line 180 of the file in question178    my $decoded;179    eval {180       $decoded = JSON::XS->new->utf8->decode($content);181    };Do you have any idea what is blocking?
 
Be the first to reply!

Reply