diff --git a/pandora_console/include/ajax/events.php b/pandora_console/include/ajax/events.php
index 3dc1d4f9c4..f4e4848bd0 100644
--- a/pandora_console/include/ajax/events.php
+++ b/pandora_console/include/ajax/events.php
@@ -503,15 +503,27 @@ if ($table_events) {
require_once ("include/functions_graph.php");
$id_agente = (int)get_parameter('id_agente', 0);
+ $all_events_24h = (int)get_parameter('all_events_24h', 0);
// Fix: for tag functionality groups have to be all user_groups (propagate ACL funct!)
$groups = users_get_groups($config["id_user"]);
$tags_condition = tags_get_acl_tags($config['id_user'],
array_keys($groups), 'ER', 'event_condition', 'AND');
-
- events_print_event_table ("estado <> 1 $tags_condition", 10, '100%',
- false, $id_agente,true);
+ echo '
';
+ echo '';
+ echo html_print_checkbox('all_events_24h', $all_events_24h, $all_events_24h, true, false, '', true);
+ echo '
';
+ $date_subtract_day = time() - (24 * 60 * 60);
+
+ if($all_events_24h){
+ events_print_event_table ("utimestamp > $date_subtract_day", 10, '100%',
+ false, $id_agente,true);
+ }
+ else{
+ events_print_event_table ("estado <> 1 $tags_condition", 10, '100%',
+ false, $id_agente,true);
+ }
}
if ($get_list_events_agents) {
diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css
index 0e52e8f19a..b07a95f79b 100644
--- a/pandora_console/include/styles/pandora.css
+++ b/pandora_console/include/styles/pandora.css
@@ -4151,4 +4151,9 @@ div#footer_help{
/*center ui dialog center*/
.ui-dialog-titlebar .ui-icon-closethick {
margin-top: -5px !important;
+}
+
+/*view-agents lastest events for this agent*/
+#div_all_events_24h{
+ padding: 4px;
}
\ No newline at end of file
diff --git a/pandora_console/operation/agentes/status_events.php b/pandora_console/operation/agentes/status_events.php
index a499afff92..714fa40352 100755
--- a/pandora_console/operation/agentes/status_events.php
+++ b/pandora_console/operation/agentes/status_events.php
@@ -35,11 +35,15 @@ ui_toggle(
?>