fixed triggered alerts count
This commit is contained in:
parent
463013b06a
commit
4d8a686ae7
|
@ -62,6 +62,7 @@ function tactical_get_data($id_user=false, $user_strict=false, $acltags, $return
|
|||
$list['_monitors_unknown_'] = 0;
|
||||
$list['_monitors_not_init_'] = 0;
|
||||
$list['_monitors_ok_'] = 0;
|
||||
$list['_monitors_alerts_fired_'] = 0;
|
||||
|
||||
if (empty($list_groups)) {
|
||||
$list_groups = [];
|
||||
|
@ -142,7 +143,7 @@ function tactical_get_data($id_user=false, $user_strict=false, $acltags, $return
|
|||
$list['_monitors_warning_'] += (int) $value['monitors_warning'];
|
||||
$list['_monitors_unknown_'] += (int) $value['monitors_unknown'];
|
||||
$list['_monitors_not_init_'] += (int) $value['monitors_not_init'];
|
||||
$list['_monitor_alerts_fire_count_'] += (int) $value['alerts_fired'];
|
||||
$list['_monitors_alerts_fired_'] += (int) $value['alerts_fired'];
|
||||
}
|
||||
|
||||
if (!empty($data_stats_unknown)) {
|
||||
|
|
Loading…
Reference in New Issue