Reschedule check in action menu

4 views
Skip to first unread message

Fabrice Le Dorze

unread,
Sep 10, 2026, 2:32:32 AMSep 10
to Thruk


Hi Sven
I use Thruk with checkmk backends.
I'm building an action menu where a would like a button to Re-schedule Check_MK service of a host.
I tried something like :
   {\
               "icon": "fa-solid fa-rotate",\
               "label": "Refresh Check_MK service",\
               "action": "/thruk/cgi-bin/cmd.cgi?cmd_typ=7&cmd_mod=2&host=$HOSTNAME$&service=Check_MK&force_check=1&replace_macros=1",

But I get :
CSRF Security Alert 
Using this formular requires a POST with a valid CSRF token or an API key.

I set :
csrf_allowed_hosts=<myip> in thruk_local.conf and restarted Apache.
 Not better.
Am I missing someting ?
What is the best method to do this ?
Thanks .

Reply all
Reply to author
Forward
0 new messages