Macro $HOSTBACKENDID$ is not available in the action menu
gevadeka opened this issue · comments
Geert van de Kamp commented
Describe the bug
Macro
Thruk Version
Thruk 3.08.3 / OMD Labs 5.20
To Reproduce
Steps to reproduce the behavior:
- 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
Additional context
I managed to add the
Then it works fine
Sven Nierlein commented
could you prepare a PR to fix Backend/Manager.pm
then? Thanks