10947-Change color heatmap notinit modules

This commit is contained in:
Pablo Aragon 2023-04-24 15:58:08 +02:00
parent ca7e1777e5
commit 20ff1692ae
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';