mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-09-26 11:29:12 +02:00
fixed tree view services pandora_enterprise#9493
This commit is contained in:
parent
d9f48426dd
commit
b67f73539f
@ -4191,6 +4191,11 @@ function modules_get_counter_by_states($state)
|
|||||||
|
|
||||||
function modules_get_state_condition($state, $prefix='tae')
|
function modules_get_state_condition($state, $prefix='tae')
|
||||||
{
|
{
|
||||||
|
// Not use empty state 0 -> AGENT_MODULE_STATUS_NORMAL.
|
||||||
|
if ($state === '') {
|
||||||
|
return '1=1';
|
||||||
|
}
|
||||||
|
|
||||||
switch ($state) {
|
switch ($state) {
|
||||||
case AGENT_MODULE_STATUS_CRITICAL_ALERT:
|
case AGENT_MODULE_STATUS_CRITICAL_ALERT:
|
||||||
case AGENT_MODULE_STATUS_CRITICAL_BAD:
|
case AGENT_MODULE_STATUS_CRITICAL_BAD:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user