Download - Naemonthruk 140517074915-phpapp02
Wir unternehmen IT.
Naemon & Thruk Sven Nierlein !Monitoring Workshop 2014
Berlin, 16.05.2014
Seite 05/13/14 www.consol.de
Consol*
!!
Consol* GmbHFranziskanerstraße 38
81669 München !
http://www.consol.de/open-source-monitoring/
2
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
Seite 05/13/14 www.consol.de
Naemon
– Naemon • Naemon-Core • Naemon-Livestatus • Thruk
4
CoreLivestatus
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
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
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
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
Seite 05/13/14 www.consol.de
Naemon - Shadownaemon
– Spiegelt Remote Instanz per Livestatus – nahezu live – Reduziert verwendete Bandbreite und Latenz
9
CoreLivestatusShadow
NaemonThrukLivestatus
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
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
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
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
Seite 05/13/14 www.consol.de
Thruk
14
– Macro Anzeige: – ‘show_custom_vars’
in der thruk_local.conf
Seite 05/13/14 www.consol.de
Thruk - Host Macros
15
– Performance Datenmenschlich lesbarstatt Nagios Format
Seite 05/13/14 www.consol.de
Thruk - Performance Tabelle
16
Seite 05/13/14 www.consol.de
Thruk - Performance Übersicht
17
– Performance Datenals Tabelle sortierbarnach einzelnen Werten
– Erweiterte Tagesangabe – Hostlisten per Komma
trennen
Seite 05/13/14 www.consol.de
Thruk - Reports
18
Seite www.consol.de
Thruk - Business Process
28.11.201319
DEMO
Seite 05/13/14 www.consol.de
Thruk - Business Process
– Web Editor / Textdatei – incl. Verfügbarkeiten – Notifications möglich
20
Seite 05/13/14 www.consol.de
Thruk - Business Process
!!!!!!!!!!!!!!
– http://thruk.org/documentation.html#_business_process
21
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
Seite www.consol.de
Thruk - Panorama Dashboard
28.11.201323
DEMO
Seite 05/13/14 www.consol.de
Thruk - Panorama Dashboard
– Dashboard • Neue Icons und Widgets • Hintergrund wählbar • Dashboard Management • Dashboard Sharing
24
– Neue Icons & Widgets – Dashboard Management – Dashboards freigeben
Seite 05/13/14 www.consol.de
Thruk - Panorama Dashboard
25