diff --git a/pandora_console/include/class/Tree.class.php b/pandora_console/include/class/Tree.class.php index dad595b8e9..bb4fe80175 100644 --- a/pandora_console/include/class/Tree.class.php +++ b/pandora_console/include/class/Tree.class.php @@ -303,6 +303,8 @@ class Tree { agents_monitor_ok($agents[$iterator]['id']); $agents[$iterator]['counters']['total'] = agents_monitor_total($agents[$iterator]['id']); + $agents[$iterator]['counters']['alerts'] = + agents_get_alerts_fired($agents[$iterator]['id']); switch (agents_get_status($agents[$iterator]['id'])) { case AGENT_STATUS_NORMAL: $agents[$iterator]['status'] = "ok"; @@ -324,6 +326,7 @@ class Tree { break; } + $agents[$iterator]['children'] = array(); if ($agents[$iterator]['counters']['total'] > 0) {