Add _agentname_ and _agentalias_ macros to plugins - #1494
This commit is contained in:
parent
ae23342184
commit
a5a3d6ac64
|
@ -216,9 +216,11 @@ sub data_consumer ($$) {
|
||||||
|
|
||||||
# Agent and module macros
|
# Agent and module macros
|
||||||
my %macros = (_agent_ => (defined ($agent)) ? $agent->{'alias'} : '',
|
my %macros = (_agent_ => (defined ($agent)) ? $agent->{'alias'} : '',
|
||||||
|
_agentalias_ => (defined ($agent)) ? $agent->{'alias'} : '',
|
||||||
_agentdescription_ => (defined ($agent)) ? $agent->{'comentarios'} : '',
|
_agentdescription_ => (defined ($agent)) ? $agent->{'comentarios'} : '',
|
||||||
_agentstatus_ => undef,
|
_agentstatus_ => undef,
|
||||||
_agentgroup_ => (defined ($group)) ? $group->{'nombre'} : '',
|
_agentgroup_ => (defined ($group)) ? $group->{'nombre'} : '',
|
||||||
|
_agentname_ => (defined ($agent)) ? $agent->{'nombre'} : '',
|
||||||
_address_ => (defined ($agent)) ? $agent->{'direccion'} : '',
|
_address_ => (defined ($agent)) ? $agent->{'direccion'} : '',
|
||||||
_module_ => (defined ($module)) ? $module->{'nombre'} : '',
|
_module_ => (defined ($module)) ? $module->{'nombre'} : '',
|
||||||
_modulegroup_ => undef,
|
_modulegroup_ => undef,
|
||||||
|
|
Loading…
Reference in New Issue