Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat /etc/thruk/thruk_local.conf
- <action_menu_items>
- hostmenu = {\
- "icon": "/thruk/themes/{{theme}}/images/dropdown.png",\
- "title": "Host Menu",\
- "menu": [\
- {\
- "icon": "/thruk/themes/{{theme}}/images/delete.png",\
- "label": "Delete Host",\
- "action": "server://echo/$HOSTNAME$"\
- },\
- ]\
- }
- </action_menu_items>
- <action_menu_actions>
- echo = /opt/script/echo.sh "test"
- </action_menu_actions>
- <action_menu_apply>
- hostmenu = .*;$ # matches all hosts only
- </action_menu_apply>
- ll /opt/script/
- total 20
- drwxr-xr-x 2 www-data www-data 4096 May 27 10:28 ./
- drwxrwxrwx 3 root root 4096 May 27 09:01 ../
- -rwxr-xr-x 1 www-data www-data 59 May 27 10:22 echo.sh*
- cat /opt/script/echo.sh
- #/bin/bash
- echo $@
- echo $@ >> /opt/script/echo.log
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement