Fixed problems with monitor report in custom report. Tiquet: #2848

This commit is contained in:
m-lopez-f 2015-10-21 17:01:11 +02:00
parent e8cc3ccbf9
commit aaef69a0d2

View File

@ -2960,11 +2960,13 @@ function reporting_monitor_report($report, $content) {
metaconsole_connect($server); metaconsole_connect($server);
} }
$module = modules_get_agentmodule ($content['id_agent_module']);
$value = reporting_get_agentmodule_sla( $value = reporting_get_agentmodule_sla(
$content['id_agent_module'], $content['id_agent_module'],
$content['period'], $content['period'],
1, $module['min_critical'],
false, $module['max_critical'],
$report["datetime"]); $report["datetime"]);
if ($value === __('Unknown')) { if ($value === __('Unknown')) {