diff --git a/pandora_console/include/functions_tactical.php b/pandora_console/include/functions_tactical.php index dec75ae13e..deb39c4e88 100644 --- a/pandora_console/include/functions_tactical.php +++ b/pandora_console/include/functions_tactical.php @@ -478,8 +478,13 @@ function tactical_get_data( $list['_monitors_alerts_fired_'] = tactical_monitor_fired_alerts(explode(',', $user_groups_ids), $user_strict, explode(',', $user_groups_ids)); $list['_monitors_alerts_'] = tactical_monitor_alerts($user_strict); + $filter_agents = []; + if (users_is_admin() === false) { + $filter_agents = ['id_grupo' => explode(',', $user_groups_ids)]; + } + $total_agentes = agents_get_agents( - ['id_grupo' => explode(',', $user_groups_ids)], + $filter_agents, ['count(DISTINCT id_agente) as total_agents'], 'AR', false, diff --git a/pandora_console/index.php b/pandora_console/index.php index c712be0567..1826dbe789 100755 --- a/pandora_console/index.php +++ b/pandora_console/index.php @@ -1440,6 +1440,16 @@ if ($searchPage) { } } +if (__PAN_XHPROF__ === 1) { + echo ""; + echo __('Page generated at').' '; + echo date('D F d, Y H:i:s', $time).''; + echo ' - ( '; + pandora_xhprof_display_result('node_index'); + echo ' )'; + echo ''; +} + if ($config['pure'] == 0) { echo '
'; echo ''; @@ -1623,7 +1633,3 @@ require 'include/php_to_js_values.php'; ); } -