fixed tree view services pandora_enterprise#9493

This commit is contained in:
Daniel Barbero 2022-09-15 12:07:05 +02:00
parent d9f48426dd
commit b67f73539f
1 changed files with 5 additions and 0 deletions

View File

@ -4191,6 +4191,11 @@ function modules_get_counter_by_states($state)
function modules_get_state_condition($state, $prefix='tae')
{
// Not use empty state 0 -> AGENT_MODULE_STATUS_NORMAL.
if ($state === '') {
return '1=1';
}
switch ($state) {
case AGENT_MODULE_STATUS_CRITICAL_ALERT:
case AGENT_MODULE_STATUS_CRITICAL_BAD: