From ad4b38d51080fabfd279d091c92b2808613439b6 Mon Sep 17 00:00:00 2001
From: fermin831 <fermin.hernandez@artica.es>
Date: Thu, 31 May 2018 18:02:50 +0200
Subject: [PATCH] Fixed problems with strange agent name on SNMP realtime
 graphs

---
 pandora_console/include/functions_modules.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pandora_console/include/functions_modules.php b/pandora_console/include/functions_modules.php
index 53b249a64a..6c0811897f 100755
--- a/pandora_console/include/functions_modules.php
+++ b/pandora_console/include/functions_modules.php
@@ -2713,7 +2713,7 @@ function get_module_realtime_link_graph ($module) {
 
 	$params = array(
 		'graph' => 'snmp_module',
-		'agent_alias' => modules_get_agentmodule_agent_alias($module['id_agente_modulo']),
+		'agent_alias' => urlencode(modules_get_agentmodule_agent_alias($module['id_agente_modulo'])),
 		'module_name' => urlencode($module['nombre']),
 		'snmp_address' => $module['ip_target'],
 		'snmp_community' => $module['snmp_community'],