From 1d589d7472cb4b51867057777c3b3ba80d497854 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 1 Jun 2015 12:06:04 +0200 Subject: [PATCH 1/2] Fixed the availability item in the reports into metaconsole when some agents into this is disabled. --- pandora_console/include/functions_reporting.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 32420f4f2c..1f2365e8ca 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -5657,6 +5657,12 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f } if (modules_is_disable_agent($item['id_agent_module'])) { + //Restore dbconnection + if (($config ['metaconsole'] == 1) && $server_name != '' && defined('METACONSOLE')) { + metaconsole_restore_db(); + } + + continue; } From 71ca2f1de74d6caefbd35c475740504887033d44 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Mon, 1 Jun 2015 12:45:42 +0200 Subject: [PATCH 2/2] Fixed the SLA item in the reports into metaconsole when some agents into this is disabled. --- pandora_console/include/functions_reporting.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 1f2365e8ca..36c771e881 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -4368,6 +4368,12 @@ function reporting_render_report_html_item ($content, $table, $report, $mini = f } if (modules_is_disable_agent($sla['id_agent_module'])) { + + if (($config ['metaconsole'] == 1) && defined('METACONSOLE')) { + //Restore db connection + metaconsole_restore_db(); + } + continue; }