You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create an action on a Thruk host which has backends defined, for example to use Thruk's proxy
Something like this: "action": "/{{site}}/thruk/cgi-bin/proxy.cgi/$HOSTBACKENDID$/$HOSTBACKENDNAME$/grafana/"
Click on the action, Thruk responds with HTTP error 500, stating it cannot replace macro's. The macro that cannot be replaced is the $HOSTBACKENDID$
Expected behavior
Thruk will go the the backend Grafana via its proxy
Screenshots
Additional context
I managed to add the $HOSTBACKENDID$ macro in Thruk's Backend/Manager.pm, function _set_host_macros
Then it works fine
The text was updated successfully, but these errors were encountered:
Describe the bug$HOSTBACKENDID$ is not available in the action menu, although documentation says otherwise (see https://www.thruk.org/documentation/macros.html)
Macro
Thruk Version
Thruk 3.08.3 / OMD Labs 5.20
To Reproduce
Steps to reproduce the behavior:
Something like this: "action": "/{{site}}/thruk/cgi-bin/proxy.cgi/$HOSTBACKENDID$/$HOSTBACKENDNAME$/grafana/"
Expected behavior
Thruk will go the the backend Grafana via its proxy
Screenshots
Additional context$HOSTBACKENDID$ macro in Thruk's Backend/Manager.pm, function _set_host_macros
I managed to add the
Then it works fine
The text was updated successfully, but these errors were encountered: