Added agent ip in custom events

This commit is contained in:
Daniel Maya 2021-07-07 16:07:08 +02:00
parent 967f7ac239
commit 66e9539818
3 changed files with 5 additions and 0 deletions

View File

@ -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');

View File

@ -305,6 +305,9 @@ function events_get_column_name($field, $table_alias=false)
return __('Severity mini');
}
case 'direccion':
return __('Agent IP');
default:
return __($field);
}

View File

@ -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';