From 66e95398182227ffbf3588bd74c0e4d95decf162 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Wed, 7 Jul 2021 16:07:08 +0200 Subject: [PATCH] Added agent ip in custom events --- pandora_console/godmode/events/custom_events.php | 1 + pandora_console/include/functions_events.php | 3 +++ pandora_console/operation/events/events.php | 1 + 3 files changed, 5 insertions(+) diff --git a/pandora_console/godmode/events/custom_events.php b/pandora_console/godmode/events/custom_events.php index 5bf137f1ea..a492b0522f 100644 --- a/pandora_console/godmode/events/custom_events.php +++ b/pandora_console/godmode/events/custom_events.php @@ -95,6 +95,7 @@ $fields_available['id_evento'] = __('Event Id'); $fields_available['evento'] = __('Event Name'); $fields_available['id_agente'] = __('Agent ID'); $fields_available['agent_name'] = __('Agent Name'); +$fields_available['direccion'] = __('Agent IP'); $fields_available['id_usuario'] = __('User'); $fields_available['id_grupo'] = __('Group'); $fields_available['estado'] = __('Status'); diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index c1d7aeb404..5a15f8639f 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -305,6 +305,9 @@ function events_get_column_name($field, $table_alias=false) return __('Severity mini'); } + case 'direccion': + return __('Agent IP'); + default: return __($field); } diff --git a/pandora_console/operation/events/events.php b/pandora_console/operation/events/events.php index 9dab979e38..41709dbc73 100644 --- a/pandora_console/operation/events/events.php +++ b/pandora_console/operation/events/events.php @@ -293,6 +293,7 @@ if (is_ajax()) { 'te.module_status', 'ta.alias as agent_name', 'tg.nombre as group_name', + 'ta.direccion', ]; if (!is_metaconsole()) { $fields[] = 'am.nombre as module_name';