mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-29 16:45:04 +02:00
enhance wazuh
This commit is contained in:
parent
c7f25b8dc4
commit
cbaa56cd6a
@ -162,7 +162,7 @@ sub request {
|
|||||||
$decoded = JSON::XS->new->utf8->decode($content);
|
$decoded = JSON::XS->new->utf8->decode($content);
|
||||||
};
|
};
|
||||||
if ($@) {
|
if ($@) {
|
||||||
$self->{output}->add_option_msg(short_msg => "Cannot decode json response");
|
$self->{output}->add_option_msg(short_msg => 'Cannot decode json response');
|
||||||
$self->{output}->option_exit();
|
$self->{output}->option_exit();
|
||||||
}
|
}
|
||||||
if ($decoded->{error} != 0) {
|
if ($decoded->{error} != 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user