Wir unternehmen IT.
Naemon & Thruk
Sven Nierlein
!
Monitoring Workshop 2014
Berlin, 16.05.2014
Seite05/13/14 www.consol.de
Consol*
!
!
Consol* GmbH

Franziskanerstraße 38
81669 München
!
http://www.consol.de/open-source-monitoring/
2
Seite05/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
Seite05/13/14 www.consol.de
Naemon
– Naemon
• Naemon-Core
• Naemon-Livestatus
• Thruk
4
Core
Livestatus
Thruk
Seite05/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
Seite05/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
O
bsolete
Seite05/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_bar0

oder

./naemon-qh.rb -c "wproc wpstats”

oder

./naemon-qh.rb

qh> core loadctl

jobs_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_cha
nge=587;nproc_limit=7929;nofile_limit=4096;options=0;changes=0;

qh>
7
Seite05/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
Seite05/13/14 www.consol.de
Naemon - Shadownaemon
– Spiegelt Remote Instanz per Livestatus
– nahezu live
– Reduziert verwendete Bandbreite und Latenz
9
Core
LivestatusShadow
NaemonThruk
Livestatus
Seite05/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
Seite05/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
Seite05/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
Seite05/13/14 www.consol.de
Naemon - Ressources
– www.naemon.org
– https://github.com/sni/omd/tree/newcores
– http://labs.consol.de/repo/testing/
13
Seite05/13/14 www.consol.de
Thruk
14
– Macro Anzeige:
– ‘show_custom_vars’

in der thruk_local.conf
Seite05/13/14 www.consol.de
Thruk - Host Macros
15
– Performance Daten

menschlich lesbar

statt Nagios Format
Seite05/13/14 www.consol.de
Thruk - Performance Tabelle
16
Seite05/13/14 www.consol.de
Thruk - Performance Übersicht
17
– Performance Daten

als Tabelle sortierbar

nach einzelnen Werten
– Erweiterte Tagesangabe
– Hostlisten per Komma

trennen
Seite05/13/14 www.consol.de
Thruk - Reports
18
Seite www.consol.de
Thruk - Business Process
28.11.2013
19
DEMO
Seite05/13/14 www.consol.de
Thruk - Business Process
– Web Editor / Textdatei
– incl. Verfügbarkeiten
– Notifications möglich
20
Seite05/13/14 www.consol.de
Thruk - Business Process
!
!
!
!
!
!
!
!
!
!
!
!
!
!
– http://thruk.org/documentation.html#_business_process
21
Seite05/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.2013
23
DEMO
Seite05/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
Seite05/13/14 www.consol.de
Thruk - Panorama Dashboard
25

Naemon & Thruk

  • 1.
    Wir unternehmen IT. Naemon& Thruk Sven Nierlein ! Monitoring Workshop 2014 Berlin, 16.05.2014
  • 2.
    Seite05/13/14 www.consol.de Consol* ! ! Consol* GmbH
 Franziskanerstraße38 81669 München ! http://www.consol.de/open-source-monitoring/ 2
  • 3.
    Seite05/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
  • 4.
    Seite05/13/14 www.consol.de Naemon – Naemon •Naemon-Core • Naemon-Livestatus • Thruk 4 Core Livestatus Thruk
  • 5.
    Seite05/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
  • 6.
    Seite05/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 O bsolete
  • 7.
    Seite05/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_bar0
 oder
 ./naemon-qh.rb -c "wproc wpstats”
 oder
 ./naemon-qh.rb
 qh> core loadctl
 jobs_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_cha nge=587;nproc_limit=7929;nofile_limit=4096;options=0;changes=0;
 qh> 7
  • 8.
    Seite05/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
  • 9.
    Seite05/13/14 www.consol.de Naemon -Shadownaemon – Spiegelt Remote Instanz per Livestatus – nahezu live – Reduziert verwendete Bandbreite und Latenz 9 Core LivestatusShadow NaemonThruk Livestatus
  • 10.
    Seite05/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
  • 11.
    Seite05/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
  • 12.
    Seite05/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
  • 13.
    Seite05/13/14 www.consol.de Naemon -Ressources – www.naemon.org – https://github.com/sni/omd/tree/newcores – http://labs.consol.de/repo/testing/ 13
  • 14.
  • 15.
    – Macro Anzeige: –‘show_custom_vars’
 in der thruk_local.conf Seite05/13/14 www.consol.de Thruk - Host Macros 15
  • 16.
    – Performance Daten
 menschlichlesbar
 statt Nagios Format Seite05/13/14 www.consol.de Thruk - Performance Tabelle 16
  • 17.
    Seite05/13/14 www.consol.de Thruk -Performance Übersicht 17 – Performance Daten
 als Tabelle sortierbar
 nach einzelnen Werten
  • 18.
    – Erweiterte Tagesangabe –Hostlisten per Komma
 trennen Seite05/13/14 www.consol.de Thruk - Reports 18
  • 19.
    Seite www.consol.de Thruk -Business Process 28.11.2013 19 DEMO
  • 20.
    Seite05/13/14 www.consol.de Thruk -Business Process – Web Editor / Textdatei – incl. Verfügbarkeiten – Notifications möglich 20
  • 21.
    Seite05/13/14 www.consol.de Thruk -Business Process ! ! ! ! ! ! ! ! ! ! ! ! ! ! – http://thruk.org/documentation.html#_business_process 21
  • 22.
    Seite05/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
  • 23.
    Seite www.consol.de Thruk -Panorama Dashboard 28.11.2013 23 DEMO
  • 24.
    Seite05/13/14 www.consol.de Thruk -Panorama Dashboard – Dashboard • Neue Icons und Widgets • Hintergrund wählbar • Dashboard Management • Dashboard Sharing 24
  • 25.
    – Neue Icons& Widgets – Dashboard Management – Dashboards freigeben Seite05/13/14 www.consol.de Thruk - Panorama Dashboard 25