From e9f8077c23f42c02f7d330541b29f7d0bb4eae59 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Thu, 26 Nov 2020 12:28:12 +0100 Subject: [PATCH] Fixed section in metaconsole --- .../operation/agentes/status_monitor.php | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/pandora_console/operation/agentes/status_monitor.php b/pandora_console/operation/agentes/status_monitor.php index db1e052ab9..08b7706f77 100644 --- a/pandora_console/operation/agentes/status_monitor.php +++ b/pandora_console/operation/agentes/status_monitor.php @@ -75,6 +75,7 @@ if (! defined('METACONSOLE')) { exit(); } } else { + $section = (string) get_parameter('sec', 'estado'); ui_meta_print_header(__('Monitor view')); } @@ -740,7 +741,7 @@ foreach ($custom_fields as $custom_field) { $table_custom_fields->data[] = $row; } -$filters = '
'; +$filters = ''; if (is_metaconsole()) { $table->colspan[4][0] = 7; $table->cellstyle[4][0] = 'padding: 10px;'; @@ -1141,16 +1142,16 @@ if (($config['dbtype'] == 'oracle') && ($result !== false)) { // Urls to sort the table. -$url_agent_name = 'index.php?sec=view&sec2=operation/agentes/status_monitor'; -$url_type = 'index.php?sec=view&sec2=operation/agentes/status_monitor'; -$url_module_name = 'index.php?sec=view&sec2=operation/agentes/status_monitor'; -$url_server_type = 'index.php?sec=view&sec2=operation/agentes/status_monitor'; -$url_interval = 'index.php?sec=view&sec2=operation/agentes/status_monitor'; -$url_status = 'index.php?sec=view&sec2=operation/agentes/status_monitor'; -$url_status = 'index.php?sec=view&sec2=operation/agentes/status_monitor'; -$url_data = 'index.php?sec=view&sec2=operation/agentes/status_monitor'; -$url_timestamp_up = 'index.php?sec=view&sec2=operation/agentes/status_monitor'; -$url_timestamp_down = 'index.php?sec=view&sec2=operation/agentes/status_monitor'; +$url_agent_name = 'index.php?sec='.$section.'&sec2=operation/agentes/status_monitor'; +$url_type = 'index.php?sec='.$section.'&sec2=operation/agentes/status_monitor'; +$url_module_name = 'index.php?sec='.$section.'&sec2=operation/agentes/status_monitor'; +$url_server_type = 'index.php?sec='.$section.'&sec2=operation/agentes/status_monitor'; +$url_interval = 'index.php?sec='.$section.'&sec2=operation/agentes/status_monitor'; +$url_status = 'index.php?sec='.$section.'&sec2=operation/agentes/status_monitor'; +$url_status = 'index.php?sec='.$section.'&sec2=operation/agentes/status_monitor'; +$url_data = 'index.php?sec='.$section.'&sec2=operation/agentes/status_monitor'; +$url_timestamp_up = 'index.php?sec='.$section.'&sec2=operation/agentes/status_monitor'; +$url_timestamp_down = 'index.php?sec='.$section.'&sec2=operation/agentes/status_monitor'; $url_agent_name .= '&refr='.$refr.'&datatype='.$datatype.'&moduletype='.$moduletype.'&modulegroup='.$modulegroup.'&offset='.$offset.'&ag_group='.$ag_group.'&ag_freestring='.$ag_freestring.'&ag_modulename='.$ag_modulename.'&status='.$status.$ag_custom_fields_params; $url_type .= '&datatype='.$datatype.'&moduletype='.$moduletype.'&refr='.$refr.'&modulegroup='.$modulegroup.'&offset='.$offset.'&ag_group='.$ag_group.'&ag_freestring='.$ag_freestring.'&ag_modulename='.$ag_modulename.'&status='.$status.$ag_custom_fields_params;