mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 08:45:12 +02:00
fix alert_fired filter
This commit is contained in:
parent
4d7341917c
commit
66e2006b27
@ -2072,7 +2072,7 @@ function api_get_all_agents($thrash1, $thrash2, $other, $returnType)
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'alert_fired':
|
case 'alert_fired':
|
||||||
if ($status == AGENT_STATUS_ALERT_FIRED) {
|
if ($status == AGENT_STATUS_ALERT_FIRED || $status == AGENT_MODULE_STATUS_WARNING_ALERT || $status == AGENT_MODULE_STATUS_CRITICAL_ALERT || $status == AGENT_MODULE_STATUS_NORMAL_ALERT) {
|
||||||
$result_agents[] = $agent;
|
$result_agents[] = $agent;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user