Page 1 of 1

Quick Action using Free Variable - not substituting

Posted: Thu Sep 01, 2016 11:11 am
by SteveBeauchemin
In the Quick Action setup I am trying to use Free Variables. The code under the covers looks like it supports use of Free Variables, but I have not been able to find the magic syntax to make it work yet.

If I use %hostid% it provides me with 134 and that is good.
If I use %hoststatustext% is shows me "OK - 127.0.0.1: rta 0.691ms, lost 0%" also good.

But a Free Variable such as %_HOSTOWNER% shows me %_HOSTOWNER% and not the content of the Free Variable.
I have tried using _OWNER _HOSTOWNER %_OWNER% %_HOSTOWNER% $_OWNER$ $_HOSTOWNER$
All I get back are the same exact name. No variable substitution.

Help?

Thanks

Steve B

Re: Quick Action using Free Variable - not substituting

Posted: Thu Sep 01, 2016 12:28 pm
by lmiltchev
But a Free Variable such as %_HOSTOWNER% shows me %_HOSTOWNER% and not the content of the Free Variable.
Try using %_HOSTHOSTOWNER% in the actions component.

Re: Quick Action using Free Variable - not substituting

Posted: Thu Sep 01, 2016 2:17 pm
by SteveBeauchemin
I figured it out.

The Underscore stuff caught me.

The actual variable = __OWNER_POC

2 underscores in front

I use it like this %_HOST_OWNER_POC%

and it works. I'm not sure what rabbit hole I went down, but I'm good now.

Thanks.

Steve B

...close the issue please.

Re: Quick Action using Free Variable - not substituting

Posted: Thu Sep 01, 2016 2:20 pm
by mcapra
Thanks for sharing your solution! Closing this up