From 25829e8897ffb48ed5bbefaf715e9d6304c88bff Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Mon, 6 Jun 2016 13:28:46 +0200 Subject: [PATCH] Fixed agent name and module name in interfaces module graphs. Ticket #3768 (cherry picked from commit 9f0208e570df8d0c821545b4384a109c23a514a3) --- pandora_console/include/functions_graph.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index c073a557d1..9608e2e3ac 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -1171,8 +1171,14 @@ function graphic_combined_module ($module_list, $weight_list, $period, if (!empty($name_list) && $names_number == $module_number && isset($name_list[$i])) { if ($labels[$agent_module_id] != '') $module_name_list[$i] = $labels[$agent_module_id]; - else + else { + $agent_name = io_safe_output( + modules_get_agentmodule_agent_name ($agent_module_id)); + $module_name = io_safe_output( + modules_get_agentmodule_name ($agent_module_id)); + $module_name_list[$i] = $agent_name ." / ". $module_name; + } } else { //Get and process agent name