Merge branch 'ent-10947-cuando-un-modulo-esta-en-un-estado-que-no-sea-normal-en-la-vista-de-heatmap-se-descoloca' into 'develop'

Ent 10947 cuando un modulo esta en un estado que no sea normal en la vista de heatmap se descoloca

See merge request artica/pandorafms!5769
This commit is contained in:
Matias Didier 2023-05-11 12:36:55 +00:00
commit e870f45e5c
2 changed files with 7 additions and 6 deletions

View File

@ -364,26 +364,26 @@ if (is_ajax() === true) {
break; break;
case AGENT_MODULE_STATUS_CRITICAL_BAD: case AGENT_MODULE_STATUS_CRITICAL_BAD:
$status = ui_print_status_image('module_critical.png', $data_module, false); $status = ui_print_status_image('module_critical.png', $data_module, true);
break; break;
case AGENT_MODULE_STATUS_WARNING: case AGENT_MODULE_STATUS_WARNING:
$status = ui_print_status_image('module_warning.png', $data_module, false); $status = ui_print_status_image('module_warning.png', $data_module, true);
break; break;
case AGENT_MODULE_STATUS_NORMAL_ALERT: case AGENT_MODULE_STATUS_NORMAL_ALERT:
case AGENT_MODULE_STATUS_WARNING_ALERT: case AGENT_MODULE_STATUS_WARNING_ALERT:
case AGENT_MODULE_STATUS_CRITICAL_ALERT: case AGENT_MODULE_STATUS_CRITICAL_ALERT:
$status = ui_print_status_image('module_alertsfired.png', $data_module, false); $status = ui_print_status_image('module_alertsfired.png', $data_module, true);
break; break;
case 4: case AGENT_MODULE_STATUS_NO_DATA:
$status = ui_print_status_image('module_no_data.png', $data_module, false); $status = ui_print_status_image('module_no_data.png', $data_module, true);
break; break;
default: default:
case AGENT_MODULE_STATUS_UNKNOWN: case AGENT_MODULE_STATUS_UNKNOWN:
$status = ui_print_status_image('module_unknown.png', $data_module, false); $status = ui_print_status_image('module_unknown.png', $data_module, true);
break; break;
} }

View File

@ -1090,6 +1090,7 @@ class Heatmap
case 3: case 3:
$status = 'unknown'; $status = 'unknown';
break; break;
case AGENT_MODULE_STATUS_NO_DATA:
case AGENT_MODULE_STATUS_NOT_INIT: case AGENT_MODULE_STATUS_NOT_INIT:
case 5: case 5:
$status = 'notinit'; $status = 'notinit';