From 18e2fe951c89e1f359d970bc0f4a0d9320764a57 Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Fri, 19 Dec 2014 18:26:50 +0100 Subject: [PATCH] Added the alerts fired count in the agents --- pandora_console/include/class/Tree.class.php | 3 +++ 1 file changed, 3 insertions(+) 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) {