diff --git a/pandora_console/include/functions_visual_map.php b/pandora_console/include/functions_visual_map.php index bf5051dcc8..4c1e7d5f97 100644 --- a/pandora_console/include/functions_visual_map.php +++ b/pandora_console/include/functions_visual_map.php @@ -973,7 +973,13 @@ function visual_map_get_status_element($layoutData) { //Status for a whole agent, if agente_modulo was == 0 } else if ($layoutData['id_agent'] != 0) { - $status = agents_get_status ($layoutData["id_agent"]); + + //-------------------------------------------------- + // ADDED NO CHECK ACL FOR AVOID CHECK TAGS THAT + // MAKE VERY SLOW THE VISUALMAPS WITH ACL TAGS + //-------------------------------------------------- + $status = agents_get_status ($layoutData["id_agent"], true); + if ($status == -1) // agents_get_status return -1 for unknown! $status = VISUAL_MAP_STATUS_UNKNOWN; } @@ -2183,7 +2189,12 @@ function visual_map_get_layout_status ($id_layout = 0, $depth = 0) { } // Agent else { - $status = agents_get_status ($data["id_agent"]); + //-------------------------------------------------- + // ADDED NO CHECK ACL FOR AVOID CHECK TAGS THAT + // MAKE VERY SLOW THE VISUALMAPS WITH ACL TAGS + //-------------------------------------------------- + + $status = agents_get_status ($data["id_agent"], true); } if ($status == VISUAL_MAP_STATUS_CRITICAL_BAD) return VISUAL_MAP_STATUS_CRITICAL_BAD;