Merge branch '1494-Macro-para-agent_name-4736-vodat' into 'develop'

Add _agentname_ and _agentalias_ macros to plugins - #1494

See merge request artica/pandorafms!1253
This commit is contained in:
vgilc 2018-01-15 13:42:54 +01:00
commit edf46ffb62
1 changed files with 2 additions and 0 deletions

View File

@ -216,9 +216,11 @@ sub data_consumer ($$) {
# Agent and module macros
my %macros = (_agent_ => (defined ($agent)) ? $agent->{'alias'} : '',
_agentalias_ => (defined ($agent)) ? $agent->{'alias'} : '',
_agentdescription_ => (defined ($agent)) ? $agent->{'comentarios'} : '',
_agentstatus_ => undef,
_agentgroup_ => (defined ($group)) ? $group->{'nombre'} : '',
_agentname_ => (defined ($agent)) ? $agent->{'nombre'} : '',
_address_ => (defined ($agent)) ? $agent->{'direccion'} : '',
_module_ => (defined ($module)) ? $module->{'nombre'} : '',
_modulegroup_ => undef,