sni / Thruk

Thruk is a multibackend monitoring webinterface for Naemon, Nagios, Icinga and Shinken using the Livestatus API.

Home Page:http://www.thruk.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Actions Menus not working with OAuth - "The requested URL was not found on this server."

kafos opened this issue · comments

commented

Describe the bug
Login of Thruk is used with OAuth - after clicking on a action menu item from my action menu I get
image

The URL then is: https://DOMAIN/SITE/thruk/cgi-bin/ACTION_MENU_NAME

Thruk 3.10
OMD 5.21~2023-11-08-labs-edition

how is this action menu configured?

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>