Added the alerts fired count in the agents
This commit is contained in:
parent
45a4880ec6
commit
019bf4c926
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Reference in New Issue