Closed TomGudman closed 9 years ago
I'd say $_HOSTOS$ is correct. Have you tried clicking on the link? Because the macros will be replaced right after clicking the link, not before that event because some Macros change over time.
Hi Sni,
:+1:
Good news, with $_HOSTos$
it works so the case has to be respected.
I did not expect the macros to be interpolated on click but to be interpolated on page generation aka the host page containing the menu. I always saw the macro name and not the value in the URL and I wrongly assumed that it would not work and NEVER clicked on the link!
Hi,
Issue
As discussed in IRC, my problem is I cannot find how to access my custom variables in the action menu using macros. The theory is a macro $_HOSTOS$ gives you access to the host's custom variable called 'os'. However I cannot make it work.
Context
Icinga2 config
Thruk config
Note: I am aware that I should not use thruk.conf directly but I am just building a PoC so it does not matter yet.
Result