mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Merge branch '1156-Serialize_data_en_metaconsola_no_funciona' into 'develop'
fixed errors metaconsole reports serialize data See merge request !712
This commit is contained in:
commit
aa54f0cc9a
@ -2447,7 +2447,14 @@ function reporting_database_serialized($report, $content) {
|
||||
$return['agent_name'] = $agent_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'];
|
||||
$search_in_history_db = db_search_in_history_db($datelimit);
|
||||
|
||||
@ -2523,6 +2530,10 @@ function reporting_database_serialized($report, $content) {
|
||||
$data[] = $row;
|
||||
}
|
||||
}
|
||||
|
||||
if ($config['metaconsole']) {
|
||||
metaconsole_restore_db();
|
||||
}
|
||||
|
||||
$return["data"] = $data;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user