Actions Menus not working with OAuth - "The requested URL was not found on this server."
kafos opened this issue · comments
sobo commented
Describe the bug
Login of Thruk is used with OAuth - after clicking on a action menu item from my action menu I get
The URL then is: https://DOMAIN/SITE/thruk/cgi-bin/ACTION_MENU_NAME
Thruk 3.10
OMD 5.21~2023-11-08-labs-edition
Sven Nierlein commented
how is this action menu configured?
sobo commented
the menu is in js format:
function menu(cfg) {
return({
"icon":"../themes/{{theme}}/images/dropdown.png",
"title": "action",
"menu":[{
"icon":"fa-toggle-on",
"label":"Switch ON",
"action":"screen_on"
}
]
}
)
}
and the configurations:
<action_menu_items>
host_menu = $USER4$/etc/thruk/action_menus/host_menu.js
</action_menu_items>
<action_menu_actions>
screen_on = $USER1$/check_by_ssh/check_by_ssh COMMAND...
</action_menu_actions>
<action_menu_apply>
host_menu = .*;$ # matches all hosts only
</action_menu_apply>