diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 1b87710f5c..224f9d8f37 100755 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -3897,28 +3897,25 @@ function visual_map_get_user_layouts( return $retval; } - -function visual_map_translate_agent_status($agent_status) -{ - switch ($agent_status) { - case AGENT_STATUS_NORMAL: - default: - return VISUAL_MAP_STATUS_NORMAL; - - case AGENT_STATUS_CRITICAL: - return VISUAL_MAP_STATUS_CRITICAL_BAD; - - case AGENT_STATUS_WARNING: - return VISUAL_MAP_STATUS_WARNING; - - case AGENT_STATUS_NOT_INIT: - case AGENT_STATUS_UNKNOWN: - case -1: - return VISUAL_MAP_STATUS_UNKNOWN; - - case AGENT_STATUS_ALERT_FIRED: - return VISUAL_MAP_STATUS_CRITICAL_ALERT; - } +function visual_map_translate_agent_status ($agent_status) { + switch ($agent_status) { + case AGENT_STATUS_NORMAL: + case AGENT_MODULE_STATUS_NORMAL_ALERT: + default: + return VISUAL_MAP_STATUS_NORMAL; + case AGENT_STATUS_CRITICAL: + case AGENT_MODULE_STATUS_CRITICAL_ALERT: + return VISUAL_MAP_STATUS_CRITICAL_BAD; + case AGENT_STATUS_WARNING: + case AGENT_MODULE_STATUS_WARNING_ALERT: + return VISUAL_MAP_STATUS_WARNING; + case AGENT_STATUS_NOT_INIT: + case AGENT_STATUS_UNKNOWN: + case -1: + return VISUAL_MAP_STATUS_UNKNOWN; + case AGENT_STATUS_ALERT_FIRED: + return VISUAL_MAP_STATUS_CRITICAL_ALERT; + } }