From cd2fce36c14acbf1941b5daf6f99686033366127 Mon Sep 17 00:00:00 2001 From: Enrique Martin Date: Tue, 3 Oct 2023 10:49:47 +0200 Subject: [PATCH] Fixed not hash JSON output in discovery plugins --- pandora_server/lib/PandoraFMS/DiscoveryServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_server/lib/PandoraFMS/DiscoveryServer.pm b/pandora_server/lib/PandoraFMS/DiscoveryServer.pm index 2703f65113..ad7247a71d 100644 --- a/pandora_server/lib/PandoraFMS/DiscoveryServer.pm +++ b/pandora_server/lib/PandoraFMS/DiscoveryServer.pm @@ -493,7 +493,7 @@ sub exec_recon_app ($$$) { } # Process monitoring data. - if (defined($output->{'monitoring_data'})) { + if (ref($output) eq 'HASH' && defined($output->{'monitoring_data'})) { my $recon = new PandoraFMS::Recon::Base( dbh => $dbh, group_id => $task->{'id_group'},