fixed errors metaconsole reports serialize data
This commit is contained in:
parent
5860d29e37
commit
c4171ac248
|
@ -2447,6 +2447,13 @@ function reporting_database_serialized($report, $content) {
|
||||||
$return['agent_name'] = $agent_name;
|
$return['agent_name'] = $agent_name;
|
||||||
$return['module_name'] = $module_name;
|
$return['module_name'] = $module_name;
|
||||||
|
|
||||||
|
if ($config['metaconsole']) {
|
||||||
|
$id_meta = metaconsole_get_id_server($content["server_name"]);
|
||||||
|
|
||||||
|
|
||||||
|
$server = metaconsole_get_connection_by_id ($id_meta);
|
||||||
|
metaconsole_connect($server);
|
||||||
|
}
|
||||||
|
|
||||||
$datelimit = $report["datetime"] - $content['period'];
|
$datelimit = $report["datetime"] - $content['period'];
|
||||||
$search_in_history_db = db_search_in_history_db($datelimit);
|
$search_in_history_db = db_search_in_history_db($datelimit);
|
||||||
|
@ -2524,6 +2531,10 @@ function reporting_database_serialized($report, $content) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($config['metaconsole']) {
|
||||||
|
metaconsole_restore_db();
|
||||||
|
}
|
||||||
|
|
||||||
$return["data"] = $data;
|
$return["data"] = $data;
|
||||||
|
|
||||||
return reporting_check_structure_content($return);
|
return reporting_check_structure_content($return);
|
||||||
|
|
Loading…
Reference in New Issue