NetXMS Support Forum

English Support => General Support => Topic started by: dodik on October 16, 2013, 12:03:30 PM

Title: Use Macro as one of parameter in DCI ?
Post by: dodik on October 16, 2013, 12:03:30 PM
Hi,
is it possible to specify macro in DCI -> General -> Data -> Parameter ?

Something like - Parameter: test_echo_macro(%{Node})

"test_echo_macro" is "ExternalParameter = test_echo_macro(*):echo $1" which return string value of Macro Node defined in CustomAttributes.


Thanks
Regards
DK
Title: Re: Use Macro as one of parameter in DCI ?
Post by: Alex Kirhenshtein on October 21, 2013, 03:42:47 PM
Hello.

Yes, it's possible. Check https://www.netxms.org/documentation/adminguide/data-collection.html#macros-in-template-items for more details.