fixed snapshot in meta
This commit is contained in:
parent
929310d0e9
commit
f5648d734d
|
@ -565,7 +565,6 @@ class Tree
|
|||
$module['id_module_type'] = (int) $module['id_tipo_modulo'];
|
||||
$module['server_type'] = (int) $module['id_modulo'];
|
||||
$module['status'] = $module['estado'];
|
||||
$module['value'] = modules_get_agentmodule_data_for_humans($module);
|
||||
|
||||
if (is_metaconsole()) {
|
||||
$module['serverID'] = $this->serverID;
|
||||
|
@ -575,6 +574,8 @@ class Tree
|
|||
$module['serverID'] = false;
|
||||
}
|
||||
|
||||
$module['value'] = modules_get_agentmodule_data_for_humans($module);
|
||||
|
||||
if (!isset($module['value'])) {
|
||||
$module['value'] = modules_get_last_value($module['id']);
|
||||
}
|
||||
|
|
|
@ -2361,7 +2361,8 @@ function modules_get_agentmodule_data_for_humans($module)
|
|||
$module['datos'],
|
||||
$module['id'],
|
||||
$module['current_interval'],
|
||||
$module['module_name']
|
||||
$module['module_name'],
|
||||
$module['serverID'] ? $module['serverID'] : 0
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5609,7 +5609,8 @@ function ui_print_module_string_value(
|
|||
$value,
|
||||
$id_agente_module,
|
||||
$current_interval,
|
||||
$module_name=null
|
||||
$module_name=null,
|
||||
$server_id=0
|
||||
) {
|
||||
global $config;
|
||||
|
||||
|
@ -5654,6 +5655,7 @@ function ui_print_module_string_value(
|
|||
'last_data' => $value,
|
||||
'interval' => $current_interval,
|
||||
'module_name' => $module_name,
|
||||
'id_node' => $server_id ? $server_id : 0,
|
||||
]
|
||||
);
|
||||
$salida = ui_get_snapshot_image($link, $is_snapshot).' ';
|
||||
|
@ -5761,7 +5763,7 @@ function ui_get_snapshot_link($params, $only_params=false)
|
|||
$params = array_merge($default_params, $params);
|
||||
|
||||
// First parameter of js winopeng_var.
|
||||
$page = $config['homeurl'].'/operation/agentes/snapshot_view.php';
|
||||
$page = ui_get_full_url('operation/agentes/snapshot_view.php', false, false, false);
|
||||
|
||||
$url = $page.'?id='.$params['id_module'].'&label='.rawurlencode(urlencode(io_safe_output($params['module_name']))).'&id_node='.$params['id_node'];
|
||||
|
||||
|
|
Loading…
Reference in New Issue