load_tables(); } $id = get_parameter('id'); $id_node = get_parameter("id_node", 0); // Get the data if ($id_node > 0) { $connection = metaconsole_get_connection_by_id($id_node); if (metaconsole_load_external_db($connection) != NOERR) { ui_print_error_message(__('Cannot connect with node to display the module data.')); exit; } } $row_module = modules_get_agentmodule($id); $row_state = db_get_row('tagente_estado', 'id_agente_modulo', $id); // Build the info $label = get_parameter ("label", io_safe_output($row_module['module_name'])); $last_timestamp = get_parameter("timestamp", $row_state['timestamp']); $last_data = io_safe_output($row_state["datos"]); $refresh = (int) get_parameter ("refr", $row_state['current_interval']); // ACL check $all_groups = agents_get_all_groups_agent ($row_state['id_agente']); if (!check_acl_one_of_groups($config['id_user'], $all_groups, "AR")) { require ($config['homedir'] . "/general/noaccess.php"); exit; } ?> 0) { $query = ui_get_url_refresh (false); echo ''; } ?> <?php echo __("%s Snapshot data view for module (%s)", get_product_name(), $label); ?> "; echo __("Current data at %s", $last_timestamp); echo ""; if (is_image_data($last_data)) { echo '
image
'; } else { $last_data = preg_replace ('//', '>', $last_data); $last_data = preg_replace ('/\n/i','
',$last_data); $last_data = preg_replace ('/\s/i',' ',$last_data); echo "
"; echo $last_data; echo "
"; ?>