From aaef69a0d27376077c830f433a15cabb42ed425f Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Wed, 21 Oct 2015 17:01:11 +0200 Subject: [PATCH] Fixed problems with monitor report in custom report. Tiquet: #2848 --- pandora_console/include/functions_reporting.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 9082f2a575..50e74b403e 100755 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -2960,11 +2960,13 @@ function reporting_monitor_report($report, $content) { metaconsole_connect($server); } + $module = modules_get_agentmodule ($content['id_agent_module']); + $value = reporting_get_agentmodule_sla( $content['id_agent_module'], $content['period'], - 1, - false, + $module['min_critical'], + $module['max_critical'], $report["datetime"]); if ($value === __('Unknown')) {