Advertisement
Guest User

Untitled

a guest
May 27th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. cat /etc/thruk/thruk_local.conf
  2.  
  3. <action_menu_items>
  4. hostmenu = {\
  5. "icon": "/thruk/themes/{{theme}}/images/dropdown.png",\
  6. "title": "Host Menu",\
  7. "menu": [\
  8. {\
  9. "icon": "/thruk/themes/{{theme}}/images/delete.png",\
  10. "label": "Delete Host",\
  11. "action": "server://echo/$HOSTNAME$"\
  12. },\
  13. ]\
  14. }
  15. </action_menu_items>
  16.  
  17. <action_menu_actions>
  18. echo = /opt/script/echo.sh "test"
  19. </action_menu_actions>
  20.  
  21. <action_menu_apply>
  22. hostmenu = .*;$ # matches all hosts only
  23. </action_menu_apply>
  24.  
  25. ll /opt/script/
  26. total 20
  27. drwxr-xr-x 2 www-data www-data 4096 May 27 10:28 ./
  28. drwxrwxrwx 3 root root 4096 May 27 09:01 ../
  29. -rwxr-xr-x 1 www-data www-data 59 May 27 10:22 echo.sh*
  30.  
  31. cat /opt/script/echo.sh
  32. #/bin/bash
  33.  
  34. echo $@
  35. echo $@ >> /opt/script/echo.log
  36. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement