diff --git a/pandora_console/include/class/Tree.class.php b/pandora_console/include/class/Tree.class.php index aec55d97c7..96b74fc157 100644 --- a/pandora_console/include/class/Tree.class.php +++ b/pandora_console/include/class/Tree.class.php @@ -895,9 +895,15 @@ class Tree protected function processAgents(&$agents, $server=false) { if (!empty($agents)) { + $agents_aux = []; foreach ($agents as $iterator => $agent) { $this->processAgent($agents[$iterator], $server); + if ($agents[$iterator]['counters']['total'] !== '0') { + $agents_aux[] = $agents[$iterator]; + } } + + $agents = $agents_aux; } }