NetXMS Support Forum

English Support => General Support => Topic started by: mitchellj on August 16, 2013, 04:58:19 PM

Title: Using variables in parameters
Post by: mitchellj on August 16, 2013, 04:58:19 PM
Hey,

So I'm trying to get a CheckSSH function working (in a template).  I am trying to check (through a proxy) that the SSH port is open.

Is there any way to get the ipAddress for the current node in the parameters function of the DCI configuration page.

I've tried

ServiceCheck.SSH($node->ipAddr)
ServiceCheck.SSH(%{node_primary_ip})
ServiceCheck.SSH($1->ipAddr)

But no luck, is there a way? It is highly possible I just can't find the docs that show how to do it.

Thanks!
mitch
Title: Re: Using variables in parameters
Post by: Alex Kirhenshtein on August 16, 2013, 05:02:53 PM
Hello

ServiceCheck.SSH(%{node_primary_ip})

should be just fine.
What kind of error you encounter?
Title: Re: Using variables in parameters
Post by: mitchellj on August 16, 2013, 05:10:54 PM
Sorry, I take it back! I must of made a typo or something  :-[ My bad!

Thanks!
mitch