Fixed the 'group_configuration' and 'agent_configuration' items in metaconsole reports. TICKET: #2249
This commit is contained in:
parent
81a0a217b5
commit
22ce2d8902
|
@ -2470,6 +2470,7 @@ function chooseType() {
|
|||
break;
|
||||
case 'group_configuration':
|
||||
$("#row_group").show();
|
||||
$("#row_servers").show();
|
||||
break;
|
||||
case 'netflow_area':
|
||||
$("#row_netflow_filter").show();
|
||||
|
|
|
@ -2307,6 +2307,14 @@ function reporting_group_configuration($report, $content) {
|
|||
$content['name'] = __('Group configuration');
|
||||
}
|
||||
|
||||
if ($config['metaconsole']) {
|
||||
$id_meta = metaconsole_get_id_server($content["server_name"]);
|
||||
|
||||
|
||||
$server = metaconsole_get_connection_by_id ($id_meta);
|
||||
metaconsole_connect($server);
|
||||
}
|
||||
|
||||
$group_name = groups_get_name($content['id_group'], true);
|
||||
|
||||
$return['title'] = $content['name'];
|
||||
|
@ -2336,6 +2344,10 @@ function reporting_group_configuration($report, $content) {
|
|||
$return['data'][] = $agent_report['data'];
|
||||
}
|
||||
|
||||
if ($config['metaconsole']) {
|
||||
metaconsole_restore_db();
|
||||
}
|
||||
|
||||
return reporting_check_structure_content($return);
|
||||
}
|
||||
|
||||
|
@ -3172,6 +3184,13 @@ function reporting_agent_configuration($report, $content) {
|
|||
$return["description"] = $content["description"];
|
||||
$return["date"] = reporting_get_date_text($report, $content);
|
||||
|
||||
if ($config['metaconsole']) {
|
||||
$id_meta = metaconsole_get_id_server($content["server_name"]);
|
||||
|
||||
|
||||
$server = metaconsole_get_connection_by_id ($id_meta);
|
||||
metaconsole_connect($server);
|
||||
}
|
||||
|
||||
$sql = "
|
||||
SELECT *
|
||||
|
@ -3264,6 +3283,10 @@ function reporting_agent_configuration($report, $content) {
|
|||
|
||||
$return['data'] = $agent_configuration;
|
||||
|
||||
if ($config['metaconsole']) {
|
||||
metaconsole_restore_db();
|
||||
}
|
||||
|
||||
return reporting_check_structure_content($return);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue