From 2fc1e9715c418f945ef4d565cd4dbd60aa802304 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Tue, 29 Jan 2019 11:55:08 +0100 Subject: [PATCH 1/2] Fixed agent status in visual map Former-commit-id: b321113da85364845ddbf31e55bd0c4442eb488c --- pandora_console/include/functions_visual_map.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 24491f592d..4a60773c1a 100755 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -3550,11 +3550,14 @@ function visual_map_get_user_layouts ($id_user = 0, $only_names = false, $filter function visual_map_translate_agent_status ($agent_status) { switch ($agent_status) { case AGENT_STATUS_NORMAL: + 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: @@ -4121,4 +4124,4 @@ function visual_map_get_color_cloud_element ($data) { return ob_get_clean(); } -?> \ No newline at end of file +?> From fad670f32250956a0b144e7efbffc38e8545a328 Mon Sep 17 00:00:00 2001 From: Daniel Maya Date: Tue, 29 Jan 2019 14:44:56 +0100 Subject: [PATCH 2/2] Fixed agent status in visual map 2 Former-commit-id: 3294be4d9d8f66edd477486a50130920144d40f7 --- pandora_console/include/functions_visual_map.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index 4a60773c1a..eaf93d7316 100755 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -3550,7 +3550,7 @@ function visual_map_get_user_layouts ($id_user = 0, $only_names = false, $filter function visual_map_translate_agent_status ($agent_status) { switch ($agent_status) { case AGENT_STATUS_NORMAL: - AGENT_MODULE_STATUS_NORMAL_ALERT: + case AGENT_MODULE_STATUS_NORMAL_ALERT: default: return VISUAL_MAP_STATUS_NORMAL; case AGENT_STATUS_CRITICAL: