Neues bei den Nagios Business Process AddOns - netways

Neues bei den Nagios Business Process AddOns - netways Neues bei den Nagios Business Process AddOns - netways

13.07.2015 Aufrufe

Neues bei denNagios Business Process AddOnsOpen Source Monitoring Conference06. Oktober 2010Bernd StrößenreutherSparda-Datenverarbeitung eGNeues bei den Nagios Business Process AddOns / Bernd StrößenreutherSeite 1

<strong>Neues</strong> <strong>bei</strong> <strong>den</strong><strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong>Open Source Monitoring Conference06. Oktober 2010Bernd StrößenreutherSparda-Datenverar<strong>bei</strong>tung eG<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 1


Agenda1. Kurze Einführung „<strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong>“2. Was ist neu?<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 3


Einführung <strong>bei</strong> der Sparda-Datenverar<strong>bei</strong>tung• Pilot-Projekt: Internet-Homebanking• Nur End-to-End-Monitoring vorhan<strong>den</strong> (Überwachung aus Endkun<strong>den</strong>sicht)• Information über Störung vorhan<strong>den</strong>, ermitteln der Ursache zeitaufwändig• Step 1: Aufbau Komponenten-Monitoring (<strong>Nagios</strong>)• Step 2: Darstellen der Abhängigkeiten und Auswirkungen auf Kun<strong>den</strong>,Priorisierung von Problemen• Da 2003 kein geeignetes Werkzeug zu fin<strong>den</strong> war:Entwicklung des <strong>Nagios</strong>-AddOn „<strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> View“• Später Erweiterung um „<strong>Nagios</strong> <strong>Business</strong> Impact Analyse“• OpenSource seit 2007<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 4


Beispiel-Anwendung 1: WebShopInternet-Verbindung 1Internet-Verbindung 2LoadbalancerWeb-Server1App-Server1ERP-SystemWeb-Server2App-Server1DB<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 5


Beispiel-Anwendung 2: eMailGroupware-ServerInternet-Verbindung 1Internet-Verbindung 2Mail-Gateway1Mail-Gateway2Mitar<strong>bei</strong>ter(Browser /Groupware-Client)<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 6


Beispiel-Anwendung 3: Intranet-PortalBrowserIntranet-Web-ServerIntranet-Portal-ServerERP-SystemDB<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 7


<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 8


<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 9


<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 10


<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 11


<strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong>: Features im Überblick (1)• Beliebig viele von <strong>Nagios</strong> oder Icinga überwachte Services können logischverknüpft wer<strong>den</strong> zu <strong>Business</strong> <strong>Process</strong>es• <strong>Business</strong> <strong>Process</strong>es können in anderen <strong>Business</strong> <strong>Process</strong>es wiederverwendetwer<strong>den</strong> Vereinfachung der Konfiguration baumartige Struktur möglich• Top-Level-View gegliedert in beliebig viele Prioritäten• Aktueller Status: <strong>Business</strong> <strong>Process</strong> View<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 12


<strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong>: Features im Überblick (2)• <strong>Business</strong> <strong>Process</strong>es können als Services wieder in <strong>Nagios</strong> oder Icingaeingebun<strong>den</strong> wer<strong>den</strong> historische Daten zu <strong>Business</strong> <strong>Process</strong>es abfragbar über<strong>Nagios</strong>/Icinga-Reporting Notifications auf Ebene von einzelnen Services oder <strong>Business</strong><strong>Process</strong>es• Was-wäre-wenn-Analysen: <strong>Business</strong> Impact Analyse• Mehrere Top-Level-Views möglich (z. B. für verschie<strong>den</strong>e Mandanten)über mehrere Konfigurationsdateien• Preview-Funktion für neue oder geänderte <strong>Business</strong> <strong>Process</strong>es• mehrsprachiges Web-Frontend<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 13


Teil 2: Was ist neu?<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 14


Weitere Datenquellen• mk_livestatushttp://mathias-kettner.de/checkmk_livestatus.html• ndo2fshttp://www.pnp4nagios.org/ndo2fs/start• Icinga-API per HTTP/JSONhttps://dev.icinga.org/projects/icinga-web/wiki/The_Icingaweb_REST_API_-_The_hid<strong>den</strong>_documentation• Merlinhttp://www.op5.org/community/projects/merlin<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 16


Vorteile von Merlin• Einfachere Datenstruktur• Liste aller Service aus NDO:select ${db_prefix}objects.name1,${db_prefix}objects.name2,${db_prefix}servicestatus.last_hard_state,${db_prefix}servicestatus.outputfrom ${db_prefix}objects, ${db_prefix}servicestatuswhere ${db_prefix}objects.objecttype_id=2 and${db_prefix}objects.is_active=1 and${db_prefix}objects.object_id=${db_prefix}servicestatus.service_object_id• aus Merlin:select host_name,service_description,last_hard_state,output from service<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 17


whereUsed.cgi• Ein Host oder Service muss zu Wartungsar<strong>bei</strong>tenkurzfristig heruntergefahren wer<strong>den</strong>:• Aber in welchen Geschäftsprozessen wird dieKomponente überhaupt verwendet?<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 18


whereUsed.cgi <strong>bei</strong> Hostsdefine host {[…]notes_url}/nagiosbp/cgi-bin/whereUsed.cgi?host=$HOSTNAME$define host {[…]action_url /nagiosbp/cgi-bin/whereUsed.cgi?host=$HOSTNAME$}define host {[…]notes Wenn hier Probleme gemeldet wer<strong>den</strong>, sieheBetriebsdoku WebshopWowird diese Komponente verwendet?}<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 19


whereUsed.cgi <strong>bei</strong> Servicesdefine service {[…]notes_url /nagiosbp/cgi-bin/whereUsed.cgi?host=$HOSTNAME$&service=$SERVICEDESC$}define service {[…]action_url /nagiosbp/cgi-bin/whereUsed.cgi?host=$HOSTNAME$&service=$SERVICEDESC$}define service {notes Wenn hier Probleme gemeldet wer<strong>den</strong>, siehe Betriebsdoku Kapitel WebshopWowird diese Komponente verwendet?}<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 20


Weitere neue Features• Anzeigen nur einer Prio• Caching möglich <strong>bei</strong>m Lesen aus der Datenbank• Rewrite einzelner Funktionen• Anpassung der Web-GUI durch eigenes CSS möglich− Sehr unterschiedliche Anforderungen der UserMonitor-Wand im IT Operations Center versus Smartphone-Browser− Komplettes Layout sauber auf CSS umgestellt− Nach allen anderen Style-Sheet-Definitionen wird user.css eingebun<strong>den</strong><strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 21


Integration mit Icinga• Integration im Icinga CGI Webinterface war von Anfang an möglich• Integration im (neuen) Icinga-Web war bislang kaum sinnvoll möglich• Seit kurzem: zwei Cronks− Anzeige der <strong>Business</strong> <strong>Process</strong> View− Konfigurationseditor: Geschäftsprozesse in einer GUI definieren− http://nagiosbp.projects.nagiosforge.org/download.shtml• Geschäftsprozesse sind per API abfragbar− JSON per HTTP− JSON aus lokal aufgerufenem Script− http://nagiosbp.projects.nagiosforge.org/doc/API-DOC<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 22


<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 23


<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 24


<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 25


<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 26


<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 27


Erfahrungen <strong>bei</strong> der Sparda-Datenverar<strong>bei</strong>tung• Traditionelles Unternehmen• bereits OpenSource-Software-Nutzer• erstes eigenes OpenSource-Projekt• Erfahrungen mit der Community sehr positiv<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 28


Ausblick• Acknowledgements und sheduled Downtimes visualisieren• Status-Info nach oben druchreichen• Mehr Informationen in der Message von check_bp_status.pl mitgeben• Bei Nachfrage: <strong>Business</strong> Impact Analyse als Icinga-Cronk• Umbenennung des Projekts:„<strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> for <strong>Nagios</strong> and Icinga“<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 29


Wie kann ich helfen?• Einsetzen!• Language Pack Französisch: Maintainer abhan<strong>den</strong> gekommen• Ideen<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 30


Weiterführende Literatur• Nahtlose Integration von <strong>Nagios</strong> und <strong>Nagios</strong> <strong>Business</strong><strong>Process</strong> <strong>AddOns</strong> mit einer Notfall-Dokumentation:http://www.heinlein-support.de/web/akademie/slac-2009/slac09-minimierung-ungeplanter-downtimes/• Homepage der <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong>:http://nagiosbp.projects.nagiosforge.org<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 31


Vielen Dank für Ihre AufmerksamkeitNoch Fragen?• … jetzt und hier• … in <strong>den</strong> PausenIcon von OpenClipArt.org“released to the public domain”• … jederzeit auf <strong>den</strong> Mailinglistenhttp://nagiosbp.projects.nagiosforge.org<strong>Neues</strong> <strong>bei</strong> <strong>den</strong> <strong>Nagios</strong> <strong>Business</strong> <strong>Process</strong> <strong>AddOns</strong> / Bernd StrößenreutherSeite 32

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!