mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
#11474 Fix data position
This commit is contained in:
parent
0ca464846d
commit
115b77d7df
@ -362,7 +362,6 @@ if ($is_metaconsole === true) {
|
|||||||
if ($is_metaconsole === true) {
|
if ($is_metaconsole === true) {
|
||||||
$nodo_image_url = $config['homeurl'].'/images/node.png';
|
$nodo_image_url = $config['homeurl'].'/images/node.png';
|
||||||
if ($id_server > 0) {
|
if ($id_server > 0) {
|
||||||
// $agent_selected = io_safe_output($inventory_agent), true);
|
|
||||||
$connection = metaconsole_get_connection_by_id($id_server);
|
$connection = metaconsole_get_connection_by_id($id_server);
|
||||||
$agents_node = metaconsole_get_agents_servers($connection['server_name'], $inventory_id_group);
|
$agents_node = metaconsole_get_agents_servers($connection['server_name'], $inventory_id_group);
|
||||||
$node = metaconsole_get_servers($id_server);
|
$node = metaconsole_get_servers($id_server);
|
||||||
@ -769,14 +768,14 @@ if ($inventory_module !== 'basic') {
|
|||||||
|
|
||||||
foreach ($nodos as $nodo) {
|
foreach ($nodos as $nodo) {
|
||||||
$agents = '';
|
$agents = '';
|
||||||
$data = [];
|
|
||||||
foreach ($nodo['data'] as $agent_rows) {
|
foreach ($nodo['data'] as $agent_rows) {
|
||||||
$modules = '';
|
$modules = '';
|
||||||
|
|
||||||
foreach ($agent_rows['row'] as $key => $row) {
|
foreach ($agent_rows['row'] as $key => $row) {
|
||||||
$columns = explode(';', io_safe_output($row['data_format']));
|
$columns = explode(';', io_safe_output($row['data_format']));
|
||||||
array_push($columns, 'Timestamp');
|
array_push($columns, 'Timestamp');
|
||||||
|
$data = [];
|
||||||
$data_rows = explode(PHP_EOL, $row['data']);
|
$data_rows = explode(PHP_EOL, $row['data']);
|
||||||
foreach ($data_rows as $data_row) {
|
foreach ($data_rows as $data_row) {
|
||||||
// Exclude results don't match filter.
|
// Exclude results don't match filter.
|
||||||
@ -796,7 +795,6 @@ if ($inventory_module !== 'basic') {
|
|||||||
array_push($data, (object) $row_tmp);
|
array_push($data, (object) $row_tmp);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$id_table = 'id_'.$row['id_module_inventory'].'_'.$nodo['server_uid'];
|
$id_table = 'id_'.$row['id_module_inventory'].'_'.$nodo['server_uid'];
|
||||||
$table = ui_print_datatable(
|
$table = ui_print_datatable(
|
||||||
@ -857,6 +855,7 @@ if ($inventory_module !== 'basic') {
|
|||||||
'white-box-content w100p',
|
'white-box-content w100p',
|
||||||
'box-shadow white_table_graph w100p',
|
'box-shadow white_table_graph w100p',
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$node_name = $nodo['server_name'];
|
$node_name = $nodo['server_name'];
|
||||||
if ($count[$nodo['server_name']] > 1) {
|
if ($count[$nodo['server_name']] > 1) {
|
||||||
@ -882,9 +881,10 @@ if ($inventory_module !== 'basic') {
|
|||||||
|
|
||||||
foreach ($nodos as $nodo_key => $nodo) {
|
foreach ($nodos as $nodo_key => $nodo) {
|
||||||
$agents = '';
|
$agents = '';
|
||||||
$data = [];
|
|
||||||
foreach ($nodo['data'] as $module_key => $module_rows) {
|
foreach ($nodo['data'] as $module_key => $module_rows) {
|
||||||
$agent = '';
|
$agent = '';
|
||||||
|
$data = [];
|
||||||
foreach ($module_rows as $row) {
|
foreach ($module_rows as $row) {
|
||||||
$columns = explode(';', io_safe_output($row['data_format']));
|
$columns = explode(';', io_safe_output($row['data_format']));
|
||||||
array_push($columns, 'Timestamp');
|
array_push($columns, 'Timestamp');
|
||||||
@ -957,7 +957,7 @@ if ($inventory_module !== 'basic') {
|
|||||||
false,
|
false,
|
||||||
$id_table
|
$id_table
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
$agents .= ui_toggle(
|
$agents .= ui_toggle(
|
||||||
$agent,
|
$agent,
|
||||||
@ -970,6 +970,7 @@ if ($inventory_module !== 'basic') {
|
|||||||
'white-box-content w100p',
|
'white-box-content w100p',
|
||||||
'box-shadow white_table_graph w100p',
|
'box-shadow white_table_graph w100p',
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
$node_name = $nodo['server_name'];
|
$node_name = $nodo['server_name'];
|
||||||
if ($count[$nodo['server_name']] > 1) {
|
if ($count[$nodo['server_name']] > 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user