NetXMS Support Forum

English Support => General Support => Topic started by: kwisatz on March 15, 2017, 01:52:46 PM

Title: Add current node host to netxms agent parameter
Post by: kwisatz on March 15, 2017, 01:52:46 PM
Hi,

Can i add the current IP or node host on Netxms Agent Parameter

getportingfo(??{node}, 80)

Thank you in advance
Title: Re: Add current node host to netxms agent parameter
Post by: Victor Kirhenshtein on April 03, 2017, 11:27:15 AM
Hi,

yes if you are expanding parameter from template. When template is applied on node, you can use %{node_primary_ip} macro (see 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) for details).

Best regards,
Victor
Title: Re: Add current node host to netxms agent parameter
Post by: kwisatz on May 04, 2017, 04:26:31 PM
Thank you Victor,

I try to set that var on the netxms agent field. Not work, workaround with Dummy script.

BR