From 7213195e3f7b2e157aecad9f043acf606b8cb421 Mon Sep 17 00:00:00 2001 From: UrBnW <40244829+UrBnW@users.noreply.github.com> Date: Mon, 24 Aug 2020 16:54:44 +0200 Subject: [PATCH] fix(nsclient) properly decode JSON --- centreon-plugins/apps/protocols/nrpe/custom/nsclient.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/apps/protocols/nrpe/custom/nsclient.pm b/centreon-plugins/apps/protocols/nrpe/custom/nsclient.pm index fb3100c2b..4701af246 100644 --- a/centreon-plugins/apps/protocols/nrpe/custom/nsclient.pm +++ b/centreon-plugins/apps/protocols/nrpe/custom/nsclient.pm @@ -186,7 +186,7 @@ sub format_result { my $decoded; eval { - $decoded = decode_json($options{content}); + $decoded = JSON::XS->new->decode($options{content}); }; if ($@) { $self->{output}->output_add(long_msg => $options{content}, debug => 1);