Fixed alert fired

This commit is contained in:
Daniel Maya 2022-01-10 15:26:07 +01:00
parent cfd2fe390e
commit f5e165f253
1 changed files with 1 additions and 3 deletions

View File

@ -346,9 +346,7 @@ final class Group extends Item
$countStatus = \db_get_row_sql($sql);
if ($countStatus['fired'] > 0) {
$status = AGENT_STATUS_ALERT_FIRED;
} else if ($countStatus['critical'] > 0) {
if ($countStatus['critical'] > 0) {
$status = AGENT_STATUS_CRITICAL;
} else if ($countStatus['warning'] > 0) {
$status = AGENT_STATUS_WARNING;