NetXMS Support Forum

English Support => General Support => Topic started by: Dani@M3T on March 25, 2014, 10:20:34 PM

Title: macros and scripts possible in DCI parameter field?
Post by: Dani@M3T on March 25, 2014, 10:20:34 PM
Is it possible to use macros and/or scripts in the 'Parameter' field of DCIs? I could use it with subagents. Otherwise everything must be implemented in transformation scripts. That would be a litlle bit confusing if you only need things like node-name oder node-IP.
Title: Re: macros and scripts possible in DCI parameter field?
Post by: Victor Kirhenshtein on March 26, 2014, 12:15:48 PM
Currently this is very limited. You can use macros in templates - these macros will be expanded when template applied to nodes. This can be useful if you create template and need to pass IP address or node name to parameter after it was applied to node. Here is short description for template macros: https://www.netxms.org/documentation/adminguide/data-collection.html#macros-in-template-items (https://www.netxms.org/documentation/adminguide/data-collection.html#macros-in-template-items)

Best regards,
Victor
Title: Re: macros and scripts possible in DCI parameter field?
Post by: Dani@M3T on March 26, 2014, 12:39:20 PM
Thanks Victor. I know this in templates. I just thought there could be a similar possibility directly in DCIs of a node.