mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed historical_data report in metaconsole
This commit is contained in:
parent
a56d5dcad5
commit
7bacb869f2
@ -3105,6 +3105,13 @@ function reporting_historical_data($report, $content)
|
|||||||
$content['name'] = __('Historical data');
|
$content['name'] = __('Historical data');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (is_metaconsole()) {
|
||||||
|
$id_meta = metaconsole_get_id_server($content['server_name']);
|
||||||
|
|
||||||
|
$server = metaconsole_get_connection_by_id($id_meta);
|
||||||
|
$connection = metaconsole_connect($server);
|
||||||
|
}
|
||||||
|
|
||||||
$id_agent = agents_get_module_id(
|
$id_agent = agents_get_module_id(
|
||||||
$content['id_agent_module']
|
$content['id_agent_module']
|
||||||
);
|
);
|
||||||
@ -3196,6 +3203,10 @@ function reporting_historical_data($report, $content)
|
|||||||
|
|
||||||
$return['data'] = $data;
|
$return['data'] = $data;
|
||||||
|
|
||||||
|
if (is_metaconsole() && $connection > 0) {
|
||||||
|
metaconsole_restore_db();
|
||||||
|
}
|
||||||
|
|
||||||
return reporting_check_structure_content($return);
|
return reporting_check_structure_content($return);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user