Successfully reported this slideshow.
Your SlideShare is downloading. ×

Thruk 2017

Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Ad
Upcoming SlideShare
Naemon 2019-11-06
Naemon 2019-11-06
Loading in …3
×

Check these out next

1 of 15 Ad
Advertisement

More Related Content

Recently uploaded (20)

Advertisement

Thruk 2017

  1. 1. Thruk Nierlein Sven 12.09.2017, Düsseldorf
  2. 2. Seite www.consol.de Die Werkzeugkiste 14.02.17 2 Action Menus Top Plugin Customised Views Broadcasts BP Filter
  3. 3. Seite www.consol.de314.02.17 DEMO
  4. 4. Seite www.consol.de Customised Views 14.02.17 4 Custom Variablen aus ‘show_custom_vars’ Spalted per Drag/Drop verschieben Umbenennen per Doppelklick Abschließend als Default View oder als Bookmark speichern
  5. 5. Seite www.consol.de Broadcasts 14.02.17 5 Neuen Broadcast über die User Einstellungen erstellen.
  6. 6. Seite www.consol.de Broadcasts 14.02.17 6
  7. 7. Seite www.consol.de Business Process Filter 14.02.17 7 Drill-Down zum Statustext hinzufügen
  8. 8. Seite www.consol.de Top Plugin 14.02.17 8 Per ‘thruk plugin enable omd’ aktivieren.
  9. 9. Seite www.consol.de Action Menus 14.02.17 9
  10. 10. Seite www.consol.de Action Menus • 1. Menü definieren: etc/thruk/action_menus/tomcat_menu.json
 
 {"icon":"../themes/{{theme}}/images/dropdown.png",
 "title": "tomcat menu",
 "menu":[
 {"icon":"../themes/{{theme}}/images/status4.gif",
 "label":"Tomcat Homepage",
 "action":"http://tomcat.apache.org/",
 "target":"_blank"
 },
 "-",
 {"icon":"../themes/{{theme}}/images/control_play_blue.png",
 "label":"Start Tomcat",
 "close_timeout":120,
 "action":"server://tomcat_start/"
 },
 {"icon":"../themes/{{theme}}/images/stop.png",
 "label":"Stop Tomcat",
 "close_timeout":120,
 "action":"server://tomcat_stop/"
 },
 ]
 } 14.02.17 10
  11. 11. Seite www.consol.de Action Menus • 2. Action definieren: etc/thruk/thruk_local.d/tomcat.conf
 
 <action_menu_actions>
 tomcat_start = ./local/bin/start_tomcat.sh
 tomcat_stop = ./local/bin/stop_tomcat.sh
 </action_menu_actions> 14.02.17 11
  12. 12. Seite www.consol.de Action Menus • 3. Menü verwenden: etc/thruk/thruk_local.d/tomcat.conf
 
 <action_menu_apply>
 tomcat_menu = ^tomcat;$
 </action_menu_apply> 14.02.17 12
  13. 13. Seite www.consol.de Action Menus • 4. Skripte erstellen:
 
 #!/bin/bash
 echo "$REMOTE_USER initated start"
 echo "<pre style='font-size:9px; line-height: 9px; text- align: left; color: black;'>"
 sudo /bin/systemctl start tomcat.service
 sudo /bin/systemctl status tomcat.service
 echo "</pre>" • Skripte absichern: • REMOTE_USER • REMOTE_USER_GROUPS • https://github.com/sni/Thruk/blob/master/examples/action_wrapper 14.02.17 13
  14. 14. Seite www.consol.de Action Menus 14.02.17 14 Auch in Panorama Dashboards…
  15. 15. Seite www.consol.de Danke • Customised Views • https://thruk.org/documentation/dynamic-views.html • Broadcast Announcements • https://thruk.org/documentation/broadcasts.html • Action Menus: • https://thruk.org/documentation/action-menu.html • Top Plugin • https://github.com/sni/thruk-plugin-omd 14.02.17 15

×