Fixed the 'max_value', 'min_value', 'avg_value', 'sumatory', 'MTTR', 'MTBF', 'TTO', 'TTRT' items in metaconsole reports. TICKET: #2249

This commit is contained in:
mdtrooper 2015-05-22 17:43:27 +02:00
parent 9f48e5eaa1
commit cd62f8c91f
1 changed files with 12 additions and 0 deletions

View File

@ -3231,6 +3231,14 @@ function reporting_value($report, $content, $type) {
}
}
if ($config['metaconsole']) {
$id_meta = metaconsole_get_id_server($content["server_name"]);
$server = metaconsole_get_connection_by_id ($id_meta);
metaconsole_connect($server);
}
$module_name = io_safe_output(
modules_get_agentmodule_name($content['id_agent_module']));
$agent_name = io_safe_output(
@ -3300,6 +3308,10 @@ function reporting_value($report, $content, $type) {
'value' => $value,
'formated_value' => $formated_value);
if ($config['metaconsole']) {
metaconsole_restore_db();
}
return reporting_check_structure_content($return);
}