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;
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;
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;
case AGENT_MODULE_STATUS_NORMAL_ALERT:
case AGENT_MODULE_STATUS_WARNING_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;
case 4:
$status = ui_print_status_image('module_no_data.png', $data_module, false);
case AGENT_MODULE_STATUS_NO_DATA:
$status = ui_print_status_image('module_no_data.png', $data_module, true);
break;
default:
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;
}

View File

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