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);
}
$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')) {