From f681f63ccb59229e80c9e77dea7aec5739dfbd89 Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 26 Jun 2017 15:42:34 +0200 Subject: [PATCH] fixed error in plugin server agent for alias --- pandora_server/lib/PandoraFMS/PluginServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora_server/lib/PandoraFMS/PluginServer.pm b/pandora_server/lib/PandoraFMS/PluginServer.pm index 1c6c86496d..9063be2c43 100644 --- a/pandora_server/lib/PandoraFMS/PluginServer.pm +++ b/pandora_server/lib/PandoraFMS/PluginServer.pm @@ -215,7 +215,7 @@ sub data_consumer ($$) { } # Agent and module macros - my %macros = (_agent_ => (defined ($agent)) ? $agent->{'nombre'} : '', + my %macros = (_agent_ => (defined ($agent)) ? $agent->{'alias'} : '', _agentdescription_ => (defined ($agent)) ? $agent->{'comentarios'} : '', _agentstatus_ => undef, _agentgroup_ => (defined ($group)) ? $group->{'nombre'} : '',