fixed error in plugin server agent for alias

This commit is contained in:
daniel 2017-06-26 15:42:34 +02:00
parent ef22945b80
commit f681f63ccb

View File

@ -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'} : '',