From 4289684e00748b6b4054aa4c46828bb679a54ba0 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Sat, 23 Feb 2019 00:01:59 +0100 Subject: [PATCH] Cloud Discovery RC1 Former-commit-id: 9933be0c76b44592783e686bfa2da9ab63df1022 --- .../include/class/ConsoleSupervisor.php | 14 ++++++++++++++ pandora_server/lib/PandoraFMS/DiscoveryServer.pm | 3 ++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/class/ConsoleSupervisor.php b/pandora_console/include/class/ConsoleSupervisor.php index d0386a59c0..64643b4c58 100644 --- a/pandora_console/include/class/ConsoleSupervisor.php +++ b/pandora_console/include/class/ConsoleSupervisor.php @@ -150,6 +150,20 @@ class ConsoleSupervisor { global $config; + /* + * PHP configuration warnings: + * NOTIF.PHP.SAFE_MODE + * NOTIF.PHP.INPUT_TIME + * NOTIF.PHP.EXECUTION_TIME + * NOTIF.PHP.UPLOAD_MAX_FILESIZE + * NOTIF.PHP.MEMORY_LIMIT + * NOTIF.PHP.DISABLE_FUNCTIONS + * NOTIF.PHP.PHANTOMJS + * NOTIF.PHP.VERSION + */ + + $this->checkPHPSettings(); + /* * Check license. * NOTIF.LICENSE.EXPIRATION diff --git a/pandora_server/lib/PandoraFMS/DiscoveryServer.pm b/pandora_server/lib/PandoraFMS/DiscoveryServer.pm index 137dffd822..7557ef8320 100644 --- a/pandora_server/lib/PandoraFMS/DiscoveryServer.pm +++ b/pandora_server/lib/PandoraFMS/DiscoveryServer.pm @@ -275,7 +275,8 @@ sub exec_recon_script ($$$) { } if (-x $command) { - `$command $args`; + my $exec_output = `$command $args`; + logger ($pa_config, "Execution output: \n", $exec_output); } else { logger ($pa_config, "Cannot execute recon task command $command."); }