diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index d58087b745..8dc3b1fa54 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -2785,6 +2785,14 @@ function reporting_monitor_report($report, $content) { $return["description"] = $content["description"]; $return["date"] = reporting_get_date_text($report, $content); + if ($config['metaconsole']) { + $id_meta = metaconsole_get_id_server($content["server_name"]); + + + $server = metaconsole_get_connection_by_id ($id_meta); + metaconsole_connect($server); + } + $value = reporting_get_agentmodule_sla( $content['id_agent_module'], $content['period'], @@ -2805,6 +2813,10 @@ function reporting_monitor_report($report, $content) { $return["data"]["fail"]["formated_value"] = (100 - $return["data"]["ok"]["formated_value"]); } + if ($config['metaconsole']) { + metaconsole_restore_db(); + } + return reporting_check_structure_content($return); }