Thruk Monitoring Gui

25
19.06.2013 Thruk Monitoring Webinterface for Nagios/Shinken/Icinga Sven Nierlein

description

Thruk Monitoring Gui at Nagios Workshop 2013 in Hamburg. Presenting news from last years development.

Transcript of Thruk Monitoring Gui

Page 1: Thruk Monitoring Gui

19.06.2013

ThrukMonitoring Webinterface for Nagios/Shinken/Icinga

Sven Nierlein

Page 2: Thruk Monitoring Gui

19.06.2013 www.consol.com2

• Under the hood• Live Demo

Page 4: Thruk Monitoring Gui

• 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

Page 5: Thruk Monitoring Gui

• Cascaded Configs

• HTTP Backends

• Connection Pooling

• Logfile Cache

19.06.2013 www.consol.com5

Under the Hood

Page 6: Thruk Monitoring Gui

• 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 HoodCascaded Configs

Page 7: Thruk Monitoring Gui

• allows remote configuration and status requests

19.06.2013 www.consol.com7

Under the HoodHTTP Backends

Page 8: Thruk Monitoring Gui

• parallel is always better than seriel

• since Thruk 1.72 backend connections are parallel by default

• connection pool uses more memory butis way faster

• tweak size with ‘connection_pool_size’

• there are Thruk installations with > 50 backends

19.06.2013 www.consol.com8

Under the HoodConnection Pools

Page 9: Thruk Monitoring Gui

19.06.2013 www.consol.com9

Under the HoodLogfile Cache

Page 10: Thruk Monitoring Gui

• increase reporting / logfile performance

• drastically reduce network usage

• lower memory footprint of nagios (caches logfiles otherwise)

19.06.2013 www.consol.com10

Under the HoodLogfile Cache

Page 11: Thruk Monitoring Gui

19.06.2013 www.consol.com11

Under the HoodLogfile Cache

Page 12: Thruk Monitoring Gui

19.06.2013 www.consol.com12

Under the HoodLogfile Cache

Page 13: Thruk Monitoring Gui

19.06.2013 www.consol.com13

Live Demo

Page 14: Thruk Monitoring Gui

• flexible dashboard

• Include own pages withgeneric url panel

19.06.2013 www.consol.com14

Panorama Dashboard

Page 15: Thruk Monitoring Gui

• completly reworked reportsplugin

• 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

Page 16: Thruk Monitoring Gui

• Displays Problems Counteras Favicon

• Uses filter of current page!

19.06.2013 www.consol.com16

Favicon Problem Counter

Page 17: Thruk Monitoring Gui

• 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

Page 18: Thruk Monitoring Gui

• automatically activated with10 or more backends

• Backends can be grouped

• Toggle groups at once

19.06.2013 www.consol.com18

Site Panel

Page 19: Thruk Monitoring Gui

• show custom variableswith ‘show_custom_vars’

• uses order fromthruk_local.conf

19.06.2013 www.consol.com19

Custom Variables

Page 20: Thruk Monitoring Gui

• 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

Page 21: Thruk Monitoring Gui

• 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

Page 22: Thruk Monitoring Gui

• automatically activated whenusing git for your configs

• automatic commits possiblewith save hooks

19.06.2013 www.consol.com22

Git History (upcoming)

Page 23: Thruk Monitoring Gui

19.06.2013 www.consol.com23

Resources

Page 24: Thruk Monitoring Gui

• 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

Page 25: Thruk Monitoring Gui

19.06.2013 www.consol.com25

Questions?