News:

We really need your input in this questionnaire

Main Menu

Using variables in parameters

Started by mitchellj, August 16, 2013, 04:58:19 PM

Previous topic - Next topic

mitchellj

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

Alex Kirhenshtein

Hello

ServiceCheck.SSH(%{node_primary_ip})

should be just fine.
What kind of error you encounter?

mitchellj

Sorry, I take it back! I must of made a typo or something  :-[ My bad!

Thanks!
mitch