Merge branch 'ent-9493-14170-elementos-criticos-en-servicios-no-se-muestra-en-el-tree-view' into 'develop'

fixed tree view services pandora_enterprise#9493

See merge request artica/pandorafms!5111
This commit is contained in:
Daniel Rodriguez 2022-10-14 09:46:13 +00:00
commit 5a645498ea
1 changed files with 5 additions and 0 deletions

View File

@ -4193,6 +4193,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: