SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Downloaden Sie, um offline zu lesen
19.06.2013
Thruk
Monitoring Webinterface for Nagios/Shinken/Icinga
Sven Nierlein
19.06.2013 www.consol.com2
• Under the hood
• Live Demo
• ...
has had 3,749 commits made by 20 contributors
representing 224,804 lines of code
• ...
took an estimated 58 years of effort
starting with its first commit in November, 2009
*https://www.ohloh.net/p/Thruk
19.06.2013 www.consol.com3
Statistics
• 12 Authors
git shortlog --since=1.year -s | wc -l
• 1463 Commits
git log --since=1.year --format=%H | wc -l
• 27 stable releases
19.06.2013 www.consol.com4
Git Statistics
• Cascaded Configs
• HTTP Backends
• Connection Pooling
• Logfile Cache
19.06.2013 www.consol.com5
Under the Hood
• most configuration items can be overridden for specific groups & users
# disable all commands, except reschedule for all users
command_disabled = 0-6,8-95,97-999
<Group admins>
# enable commands for admins again
command_disabled =
</Group>
• Thruk uses Nagios contactgroups and users
*http://www.thruk.org/documentation.html#_user_amp_group_specific_overrides
19.06.2013 www.consol.com6
Under the Hood
Cascaded Configs
• allows remote configuration and status requests
19.06.2013 www.consol.com7
Under the Hood
HTTP Backends
• parallel is always better than seriel
• since Thruk 1.72 backend connections
are parallel by default
• connection pool uses more memory but
is way faster
• tweak size with ‘connection_pool_size’
• there are Thruk installations with > 50 backends
19.06.2013 www.consol.com8
Under the Hood
Connection Pools
19.06.2013 www.consol.com9
Under the Hood
Logfile Cache
• increase reporting / logfile performance
• drastically reduce network usage
• lower memory footprint of nagios (caches logfiles otherwise)
19.06.2013 www.consol.com10
Under the Hood
Logfile Cache
19.06.2013 www.consol.com11
Under the Hood
Logfile Cache
19.06.2013 www.consol.com12
Under the Hood
Logfile Cache
19.06.2013 www.consol.com13
Live Demo
• flexible dashboard
• Include own pages with
generic url panel
19.06.2013 www.consol.com14
Panorama Dashboard
• completly reworked reports
plugin
• schedule email reports
• every page can be a report
19.06.2013 www.consol.com15
Reports 2
• based on wkhtml2pdf
• customizable with html and css
• Displays Problems Counter
as Favicon
• Uses filter of current page!
19.06.2013 www.consol.com16
Favicon Problem Counter
• Form / Cookie Based Login
• Uses Apache Rewrite Map
• OMD
• Works for PNP4Nagios and other
Addons too
• `omd config`
19.06.2013 www.consol.com17
Form Login
• automatically activated with
10 or more backends
• Backends can be grouped
• Toggle groups at once
19.06.2013 www.consol.com18
Site Panel
• show custom variables
with ‘show_custom_vars’
• uses order from
thruk_local.conf
19.06.2013 www.consol.com19
Custom Variables
• beautify your config files:
OMD[workshop]:~$ cat etc/nagios/conf.d/jmx4perl_nagios.cfg | naglint
##############################################################
# Jmx4Perl Configuration for OMD
# ==============================
# Command definition, using hostnames to refer to server names
# in the jmx4perl configuration (<server>...</server> section)
# The 'real' checks are defined in $SITE/etc/jmx4perl/jmx4perl.cfg
# in jmx4perl specific syntax and are referenced by name from
# Nagios service definitions.
define command {
command_name check_jmx4perl
command_line $USER1$/check_jmx4perl 
--config $USER4$/etc/jmx4perl/jmx4perl.cfg 
--server $HOSTNAME$ 
--check $ARG1$ $ARG2$ $ARG3$ $ARG4$
}
• Inline replace is possible
19.06.2013 www.consol.com20
Naglint
• new thruk support
• uses json api
• not yet released
• Thanks to Henri Wahl and Davide Cecchetto
19.06.2013 www.consol.com21
Nagstamon for Thruk
• automatically activated when
using git for your configs
• automatic commits possible
with save hooks
19.06.2013 www.consol.com22
Git History (upcoming)
19.06.2013 www.consol.com23
Resources
• http://www.thruk.org
• http://thruk.org/ideas.html
• http://labs.consol.de/nagios/thruk/
• https://github.com/sni/Thruk
• http://demo.thruk.org
19.06.2013 www.consol.com24
Resources
19.06.2013 www.consol.com25
Questions?

Weitere ähnliche Inhalte

Ähnlich wie Thruk Monitoring Gui

64c7d81c-2398-4c8d-a21d-421f53f03deb-160413212748
64c7d81c-2398-4c8d-a21d-421f53f03deb-16041321274864c7d81c-2398-4c8d-a21d-421f53f03deb-160413212748
64c7d81c-2398-4c8d-a21d-421f53f03deb-160413212748
Latha Gummadi
 

Ähnlich wie Thruk Monitoring Gui (20)

OSMC 2013 | Thruk - Monitoring GUI by Sven Nierlein
OSMC 2013 | Thruk - Monitoring GUI by Sven NierleinOSMC 2013 | Thruk - Monitoring GUI by Sven Nierlein
OSMC 2013 | Thruk - Monitoring GUI by Sven Nierlein
 
2015-09-16 georchestra @ foss4g2015 Seoul
2015-09-16 georchestra @ foss4g2015 Seoul2015-09-16 georchestra @ foss4g2015 Seoul
2015-09-16 georchestra @ foss4g2015 Seoul
 
geOrchestra, a free, modular and secure SDI
geOrchestra, a free, modular and secure SDIgeOrchestra, a free, modular and secure SDI
geOrchestra, a free, modular and secure SDI
 
OVERVIEW: Chromium Source Tree
OVERVIEW: Chromium Source TreeOVERVIEW: Chromium Source Tree
OVERVIEW: Chromium Source Tree
 
from Docker to Moby and back. what changed ?
from Docker to Moby and back. what changed ?from Docker to Moby and back. what changed ?
from Docker to Moby and back. what changed ?
 
The printing press of 2021 - using GitLab to publish the VSHN Handbook
The printing press of 2021 - using GitLab to publish the VSHN HandbookThe printing press of 2021 - using GitLab to publish the VSHN Handbook
The printing press of 2021 - using GitLab to publish the VSHN Handbook
 
Cloud Foundry Monitoring How-To: Collecting Metrics and Logs
Cloud Foundry Monitoring How-To: Collecting Metrics and LogsCloud Foundry Monitoring How-To: Collecting Metrics and Logs
Cloud Foundry Monitoring How-To: Collecting Metrics and Logs
 
Soccnx10: Best and worst practices deploying IBM Connections
Soccnx10: Best and worst practices deploying IBM ConnectionsSoccnx10: Best and worst practices deploying IBM Connections
Soccnx10: Best and worst practices deploying IBM Connections
 
Thrombus Training Dec. 2013
Thrombus Training Dec. 2013Thrombus Training Dec. 2013
Thrombus Training Dec. 2013
 
The Twelve Factor App - Pivotal Tracker
The Twelve Factor App - Pivotal TrackerThe Twelve Factor App - Pivotal Tracker
The Twelve Factor App - Pivotal Tracker
 
[scala.by] Launching new application fast
[scala.by] Launching new application fast[scala.by] Launching new application fast
[scala.by] Launching new application fast
 
How to plan and define your CI-CD pipeline
How to plan and define your CI-CD pipelineHow to plan and define your CI-CD pipeline
How to plan and define your CI-CD pipeline
 
Fluent 2018: Tracking Performance of the Web with HTTP Archive
Fluent 2018: Tracking Performance of the Web with HTTP ArchiveFluent 2018: Tracking Performance of the Web with HTTP Archive
Fluent 2018: Tracking Performance of the Web with HTTP Archive
 
BEST AND WORST PRACTICES DEPLOYING IBM CONNECTIONS
BEST AND WORST PRACTICES DEPLOYING IBM CONNECTIONSBEST AND WORST PRACTICES DEPLOYING IBM CONNECTIONS
BEST AND WORST PRACTICES DEPLOYING IBM CONNECTIONS
 
Best and worst practices deploying IBM Connections
Best and worst practices deploying IBM ConnectionsBest and worst practices deploying IBM Connections
Best and worst practices deploying IBM Connections
 
64c7d81c-2398-4c8d-a21d-421f53f03deb-160413212748
64c7d81c-2398-4c8d-a21d-421f53f03deb-16041321274864c7d81c-2398-4c8d-a21d-421f53f03deb-160413212748
64c7d81c-2398-4c8d-a21d-421f53f03deb-160413212748
 
2014 11-05 hpcac-kniep_christian_dockermpi
2014 11-05 hpcac-kniep_christian_dockermpi2014 11-05 hpcac-kniep_christian_dockermpi
2014 11-05 hpcac-kniep_christian_dockermpi
 
How Sysbee Manages Infrastructures and Provides Advanced Monitoring by Using ...
How Sysbee Manages Infrastructures and Provides Advanced Monitoring by Using ...How Sysbee Manages Infrastructures and Provides Advanced Monitoring by Using ...
How Sysbee Manages Infrastructures and Provides Advanced Monitoring by Using ...
 
Parallel programing in web applications - public.pptx
Parallel programing in web applications - public.pptxParallel programing in web applications - public.pptx
Parallel programing in web applications - public.pptx
 
Ansible
AnsibleAnsible
Ansible
 

Kürzlich hochgeladen

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 

Kürzlich hochgeladen (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 

Thruk Monitoring Gui

  • 1. 19.06.2013 Thruk Monitoring Webinterface for Nagios/Shinken/Icinga Sven Nierlein
  • 2. 19.06.2013 www.consol.com2 • Under the hood • Live Demo
  • 3. • ... has had 3,749 commits made by 20 contributors representing 224,804 lines of code • ... took an estimated 58 years of effort starting with its first commit in November, 2009 *https://www.ohloh.net/p/Thruk 19.06.2013 www.consol.com3 Statistics
  • 4. • 12 Authors git shortlog --since=1.year -s | wc -l • 1463 Commits git log --since=1.year --format=%H | wc -l • 27 stable releases 19.06.2013 www.consol.com4 Git Statistics
  • 5. • Cascaded Configs • HTTP Backends • Connection Pooling • Logfile Cache 19.06.2013 www.consol.com5 Under the Hood
  • 6. • most configuration items can be overridden for specific groups & users # disable all commands, except reschedule for all users command_disabled = 0-6,8-95,97-999 <Group admins> # enable commands for admins again command_disabled = </Group> • Thruk uses Nagios contactgroups and users *http://www.thruk.org/documentation.html#_user_amp_group_specific_overrides 19.06.2013 www.consol.com6 Under the Hood Cascaded Configs
  • 7. • allows remote configuration and status requests 19.06.2013 www.consol.com7 Under the Hood HTTP Backends
  • 8. • parallel is always better than seriel • since Thruk 1.72 backend connections are parallel by default • connection pool uses more memory but is way faster • tweak size with ‘connection_pool_size’ • there are Thruk installations with > 50 backends 19.06.2013 www.consol.com8 Under the Hood Connection Pools
  • 10. • increase reporting / logfile performance • drastically reduce network usage • lower memory footprint of nagios (caches logfiles otherwise) 19.06.2013 www.consol.com10 Under the Hood Logfile Cache
  • 14. • flexible dashboard • Include own pages with generic url panel 19.06.2013 www.consol.com14 Panorama Dashboard
  • 15. • completly reworked reports plugin • schedule email reports • every page can be a report 19.06.2013 www.consol.com15 Reports 2 • based on wkhtml2pdf • customizable with html and css
  • 16. • Displays Problems Counter as Favicon • Uses filter of current page! 19.06.2013 www.consol.com16 Favicon Problem Counter
  • 17. • Form / Cookie Based Login • Uses Apache Rewrite Map • OMD • Works for PNP4Nagios and other Addons too • `omd config` 19.06.2013 www.consol.com17 Form Login
  • 18. • automatically activated with 10 or more backends • Backends can be grouped • Toggle groups at once 19.06.2013 www.consol.com18 Site Panel
  • 19. • show custom variables with ‘show_custom_vars’ • uses order from thruk_local.conf 19.06.2013 www.consol.com19 Custom Variables
  • 20. • beautify your config files: OMD[workshop]:~$ cat etc/nagios/conf.d/jmx4perl_nagios.cfg | naglint ############################################################## # Jmx4Perl Configuration for OMD # ============================== # Command definition, using hostnames to refer to server names # in the jmx4perl configuration (<server>...</server> section) # The 'real' checks are defined in $SITE/etc/jmx4perl/jmx4perl.cfg # in jmx4perl specific syntax and are referenced by name from # Nagios service definitions. define command { command_name check_jmx4perl command_line $USER1$/check_jmx4perl --config $USER4$/etc/jmx4perl/jmx4perl.cfg --server $HOSTNAME$ --check $ARG1$ $ARG2$ $ARG3$ $ARG4$ } • Inline replace is possible 19.06.2013 www.consol.com20 Naglint
  • 21. • new thruk support • uses json api • not yet released • Thanks to Henri Wahl and Davide Cecchetto 19.06.2013 www.consol.com21 Nagstamon for Thruk
  • 22. • automatically activated when using git for your configs • automatic commits possible with save hooks 19.06.2013 www.consol.com22 Git History (upcoming)
  • 24. • http://www.thruk.org • http://thruk.org/ideas.html • http://labs.consol.de/nagios/thruk/ • https://github.com/sni/Thruk • http://demo.thruk.org 19.06.2013 www.consol.com24 Resources