Added the alerts fired count in the agents

This commit is contained in:
mdtrooper 2014-12-19 18:26:50 +01:00
parent 45a4880ec6
commit 019bf4c926
1 changed files with 3 additions and 0 deletions

View File

@ -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) {