From a0a1be254d676055a4b14c83e86fe228c7b184d0 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Fri, 13 Nov 2020 13:28:07 +0100 Subject: [PATCH] WIP: Backup upload --- pandora_console/godmode/wizards/DiscoveryTaskList.class.php | 1 + pandora_server/lib/PandoraFMS/DiscoveryServer.pm | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php index b43be9e4ff..1354464cf3 100644 --- a/pandora_console/godmode/wizards/DiscoveryTaskList.class.php +++ b/pandora_console/godmode/wizards/DiscoveryTaskList.class.php @@ -546,6 +546,7 @@ class DiscoveryTaskList extends HTML true ); } else if ($task['review_mode'] == DISCOVERY_STANDARD) { + hd($task); if ($task['type'] === DISCOVERY_APP_VMWARE) { if ($task['status'] <= 0 && $task['utimestamp'] != 0) { $data[5] == __('Done'); diff --git a/pandora_server/lib/PandoraFMS/DiscoveryServer.pm b/pandora_server/lib/PandoraFMS/DiscoveryServer.pm index 7e562f06ca..2b57922a80 100644 --- a/pandora_server/lib/PandoraFMS/DiscoveryServer.pm +++ b/pandora_server/lib/PandoraFMS/DiscoveryServer.pm @@ -32,7 +32,7 @@ use MIME::Base64; # Default lib dir for RPM and DEB packages use lib '/usr/lib/perl5'; -use Data::Dumper; + use PandoraFMS::Tools; use PandoraFMS::DB; use PandoraFMS::Core; @@ -387,7 +387,7 @@ sub exec_recon_script ($$$) { } else { $ent_script = 1; } - + if (-x $command) { my $exec_output = `$command $args`; logger($pa_config, "Execution output: \n". $exec_output, 10);