diff --git a/pandora_console/godmode/events/custom_events.php b/pandora_console/godmode/events/custom_events.php index 317a80a57c..bfb0e8c64d 100644 --- a/pandora_console/godmode/events/custom_events.php +++ b/pandora_console/godmode/events/custom_events.php @@ -114,12 +114,10 @@ $fields_available['server_name'] = __('Server Name'); $fields_available['data'] = __('Data'); $fields_available['module_status'] = __('Module Status'); -// remove fields already selected +// Remove fields already selected. foreach ($fields_available as $key => $available) { - foreach ($result_selected as $selected) { - if ($selected == $available) { - unset($fields_available[$key]); - } + if (isset($result_selected[$key])) { + unset($fields_available[$key]); } } diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index 3d6e56bc64..3747aa5989 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -972,10 +972,11 @@ function events_get_all( } // Module search. - $agentmodule_join = ''; - if (!empty($filter['module_search'])) { - $agentmodule_join = 'INNER JOIN tagente_modulo am - ON te.id_agentmodule = am.id_agente_modulo'; + $agentmodule_join = 'LEFT JOIN tagente_modulo am ON te.id_agentmodule = am.id_agente_modulo'; + if (is_metaconsole()) { + $agentmodule_join = ''; + } else if (!empty($filter['module_search'])) { + $agentmodule_join = 'INNER JOIN tagente_modulo am ON te.id_agentmodule = am.id_agente_modulo'; $sql_filters[] = sprintf( ' AND am.nombre = "%s" ', $filter['module_search'] diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css index b4a8226d86..ce51370ab7 100644 --- a/pandora_console/include/styles/pandora.css +++ b/pandora_console/include/styles/pandora.css @@ -4700,6 +4700,7 @@ input:checked + .p-slider:before { height: 27px; cursor: pointer; border-radius: 5px; + z-index: 10; } #top_btn:hover { diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 4e11f0915b..b86e4c7c3a 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -130,7 +130,7 @@ if (is_ajax()) { 'te.evento', 'te.utimestamp', 'te.event_type', - 'te.id_agentmodule', + 'am.nombre as id_agentmodule', 'te.id_alert_am', 'te.criticity', 'te.user_comment', @@ -141,7 +141,7 @@ if (is_ajax()) { 'te.warning_instructions', 'te.unknown_instructions', 'te.owner_user', - 'te.ack_utimestamp', + 'if(te.ack_utimestamp > 0, from_unixtime(te.ack_utimestamp),"") as ack_utimestamp', 'te.custom_data', 'te.data', 'te.module_status', @@ -1511,6 +1511,43 @@ function process_datatables_item(item) { item.event_type = '