25
Wir unternehmen IT. Naemon & Thruk Sven Nierlein Monitoring Workshop 2014 Berlin, 16.05.2014

Naemon & Thruk

Embed Size (px)

DESCRIPTION

Folien zum Vortrag Naemon & Thruk auf dem Berliner Monitoring Workshop 2014. Es wird Naemon als Alternative zu Nagios vorgestellt und Neugigkeiten für Thruk mit Business Prozessen und Dashboards.

Citation preview

Page 1: Naemon & Thruk

Wir unternehmen IT.

Naemon & Thruk Sven Nierlein !Monitoring Workshop 2014

Berlin, 16.05.2014

Page 2: Naemon & Thruk

Seite 05/13/14 www.consol.de

Consol*

!!

Consol* GmbHFranziskanerstraße 38

81669 München !

http://www.consol.de/open-source-monitoring/

2

Page 3: Naemon & Thruk

Seite 05/13/14 www.consol.de

Naemon - Facts

– Naemon ist ein Fork von Nagios 4.0.2 – Gegründet im Herbst 2013 – Naemon Board: 4 Mitglieder – Web: www.naemon.org

3

Page 4: Naemon & Thruk

Seite 05/13/14 www.consol.de

Naemon

– Naemon • Naemon-Core • Naemon-Livestatus • Thruk

4

CoreLivestatus

Thruk

Page 5: Naemon & Thruk

Seite 05/13/14 www.consol.de

Naemon - Core

– schlanker Core mit Worker Modell – Rewrite des Schedulings – Rewrite des Config Parsers – Logfilerotation auf Logrotate.d umgestellt

5

Page 6: Naemon & Thruk

Seite 05/13/14 www.consol.de

Naemon - Core

– command_check_interval – external_command_buffer_slots – sleep_time – enable_failure_prediction – enable_embedded_perl – use_embedded_perl_implicitly – auth_file – p1_file

6

Obsolete

Page 7: Naemon & Thruk

Seite 05/13/14 www.consol.de

Naemon - Core

– Query-Handler – Schnittstelle zwischen dem Core und den Workern – Schnittstelle für Spezialworker, zb.:

@wproc register name=foobar;plugin=check_snmp;plugin=check_bar\0 oder ./naemon-qh.rb -c "wproc wpstats” oder ./naemon-qh.rbqh> core loadctljobs_max=7829;jobs_min=50;jobs_running=0;jobs_limit=7829;load=0.00;backoff_limit=5.00;backoff_change=2348;rampup_limit=1.60;rampup_change=587;nproc_limit=7929;nofile_limit=4096;options=0;changes=0;qh>

7

Page 8: Naemon & Thruk

Seite 05/13/14 www.consol.de

Naemon - Livestatus

– Livestatus wird als Standardschnittstelle angeboten – Incl. Erweiterungen zum Original-livestatus:

• Sort: <column name> <asc/desc> • Offset: <number of lines> • OutputFormat: wrapped_json

8

Page 9: Naemon & Thruk

Seite 05/13/14 www.consol.de

Naemon - Shadownaemon

– Spiegelt Remote Instanz per Livestatus – nahezu live – Reduziert verwendete Bandbreite und Latenz

9

CoreLivestatusShadow

NaemonThrukLivestatus

Page 10: Naemon & Thruk

Seite 05/13/14 www.consol.de

Naemon - Thruk

– CGIs wurden durch Thruk ersetzt – Die Schnittstelle ist Livestatus – Es werden die Standard(thruk)plugins mitgeliefert:

• Reports • Business Process • Config Tool • Panorama Dashboard • Mine Map • …

– Form Based Login as Default aktiviert

10

Page 11: Naemon & Thruk

Seite 05/13/14 www.consol.de

Naemon - Addons

– Merlin – Livestatus – Mod-Gearman – PNP (Patch verfügbar für npcdmod) – Alles was mit Nagios 4 auch läuft

11

Page 12: Naemon & Thruk

Seite 05/13/14 www.consol.de

Naemon - Roadmap

– Dropdir support (conf.d) – Dynamic thresholds – Dynamic creation of objects – Distributed und load balancing build-in – Smart Agent – Gruppierung von Services in "Kategorien"

12

Page 13: Naemon & Thruk

Seite 05/13/14 www.consol.de

Naemon - Ressources

– www.naemon.org – https://github.com/sni/omd/tree/newcores – http://labs.consol.de/repo/testing/

13

Page 14: Naemon & Thruk

Seite 05/13/14 www.consol.de

Thruk

14

Page 15: Naemon & Thruk

– Macro Anzeige: – ‘show_custom_vars’

in der thruk_local.conf

Seite 05/13/14 www.consol.de

Thruk - Host Macros

15

Page 16: Naemon & Thruk

– Performance Datenmenschlich lesbarstatt Nagios Format

Seite 05/13/14 www.consol.de

Thruk - Performance Tabelle

16

Page 17: Naemon & Thruk

Seite 05/13/14 www.consol.de

Thruk - Performance Übersicht

17

– Performance Datenals Tabelle sortierbarnach einzelnen Werten

Page 18: Naemon & Thruk

– Erweiterte Tagesangabe – Hostlisten per Komma

trennen

Seite 05/13/14 www.consol.de

Thruk - Reports

18

Page 19: Naemon & Thruk

Seite www.consol.de

Thruk - Business Process

28.11.201319

DEMO

Page 20: Naemon & Thruk

Seite 05/13/14 www.consol.de

Thruk - Business Process

– Web Editor / Textdatei – incl. Verfügbarkeiten – Notifications möglich

20

Page 21: Naemon & Thruk

Seite 05/13/14 www.consol.de

Thruk - Business Process

!!!!!!!!!!!!!!

– http://thruk.org/documentation.html#_business_process

21

Page 22: Naemon & Thruk

Seite 05/13/14 www.consol.de

Thruk - Business Process

– Benutzer definierte Funktionen sind möglich in ~/etc/thruk/bp/*.pm# echofunction: # # This function just echoes the # provided text sample and optionally # reverses the text. # # Arguments: # arg1: Text; text; text that should be echoed # arg2: Reverse; checkbox; yes; no # arg3: Uppercase; select; yes; no sub echofunction { my($c, $bp, $n, $args, $livedata) = @_; my($text, $reverse, $upper) = @{$args}; $text = scalar reverse $text if $reverse eq 'yes'; $text = uc $text if $upper eq 'yes'; return(0, $text, $text, {}); }

22

Page 23: Naemon & Thruk

Seite www.consol.de

Thruk - Panorama Dashboard

28.11.201323

DEMO

Page 24: Naemon & Thruk

Seite 05/13/14 www.consol.de

Thruk - Panorama Dashboard

– Dashboard • Neue Icons und Widgets • Hintergrund wählbar • Dashboard Management • Dashboard Sharing

24

Page 25: Naemon & Thruk

– Neue Icons & Widgets – Dashboard Management – Dashboards freigeben

Seite 05/13/14 www.consol.de

Thruk - Panorama Dashboard

25