osdc 2015: bernd erk | why favour icinga over nagios
TRANSCRIPT
![Page 1: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/1.jpg)
www.icinga.org
Why favour Icinga over Nagios
OSDC Berlin - 23th April 2015
![Page 2: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/2.jpg)
• Bernd Erk
• Working @NETWAYS
• Icinga Co-Founder
• @gethash
![Page 3: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/3.jpg)
THE ICINGA PROJECT
![Page 4: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/4.jpg)
Open Source Enterprise Monitoring
Icinga is a scalable and extensible monitoring system
which checks the availability of your resources, notifies
users of outages and provides extensive BI data.
![Page 5: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/5.jpg)
• Originally forked from Nagios in 2009
• Independent version Icinga 2 since 2014
![Page 6: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/6.jpg)
You?
![Page 7: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/7.jpg)
![Page 8: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/8.jpg)
![Page 9: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/9.jpg)
Icinga Core
C-based source
MySQL, PostgreSQL, Oracle
Icinga Quality, Testing and Community Support
Website and Open Source Ticketing System
Icinga Reports
based on Jasper
Reports
Icinga Doc
based on
Markdown
3rd Party Tools Icinga Web based on PHP using ExtJS, Agavi MVC
IDOUTILS
Icinga Web 2 Based on PHP / responsive design
Icinga 2
C++-based source with
multiple components
IDO Livestatus Cluster …
![Page 10: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/10.jpg)
ICINGA 2 - INTRODUCTION
![Page 11: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/11.jpg)
• Monitors everything
• In a regular interval
• Gathering status
• Collect performance data
![Page 12: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/12.jpg)
• Notifies using any channel
• Detects dependencies
• Handles events in configured way
![Page 13: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/13.jpg)
• Forwards logs to Logstash and Graylog
• Passes performance data to Graphite,
OpenTSDB or InfluxDB
![Page 14: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/14.jpg)
• Based on C++ and Boost
• Supports MySQL and PostgreSQL
• Includes a extensive template library
![Page 15: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/15.jpg)
• Version 2.3.4 is out since a couple of days
• Puppet, Chef and Ansible support
• Packages and Vagrant Box available
![Page 16: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/16.jpg)
WHY NAGIOS™ IS GOOD?
![Page 17: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/17.jpg)
• Monitoring things is very easy
• Very simple software stack
• No complex external dependencies
![Page 18: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/18.jpg)
• Active checks are powerful
• Gathering performance data
• Huge community
• Thousands of Plugins
![Page 19: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/19.jpg)
OK, BUT WHY ICINGA THEN?
![Page 20: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/20.jpg)
NAGIOS DOES NOT SCALE
![Page 21: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/21.jpg)
• It is just a single loop
• Limitations using external interfaces
![Page 22: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/22.jpg)
• Icinga 2 is a multithreaded C++ Core
• Load is distributed automatically
• Ability to monitor thousands of devices in
second interval
![Page 23: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/23.jpg)
![Page 24: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/24.jpg)
ADDING MODULES IS HARD
![Page 25: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/25.jpg)
# tar xzvf mk-livestatus-1.2.4.tar.gz
# cd mk-livestatus-1.2.4
# ./configure --prefix=/usr/local/icinga
--exec-prefix=/usr/local/icinga
# make
# cp src/livestatus.o /usr/local/icinga/bin
![Page 26: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/26.jpg)
define module {
module_name mklivestatus
path /usr/local/icinga/bin/livestatus.o
module_type neb
args /usr/local/icinga/var/rw/live
}
![Page 27: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/27.jpg)
Checker
Notify
Gelf
Perfdata Graphite
IDO
Compat
Livestatus
![Page 28: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/28.jpg)
• We have a powerful CLI
• Adding new features is easy
• You can really really do sophisticated setups
… but you don’t have too
![Page 29: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/29.jpg)
# icinga2 feature enable livestatus
# icinga2 feature enable ido-mysql
![Page 30: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/30.jpg)
DEMO
![Page 31: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/31.jpg)
NO CLUSTERING AND DISTRIBUTION
![Page 32: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/32.jpg)
• There is no integrated failover mechanism
• Configuration is not distributed
• No shared monitoring information
![Page 33: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/33.jpg)
• Zones for multitenancy environments
• Support for logic splits in the config
• Availability and scaling zones
• Automatic redistribution of checks
![Page 34: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/34.jpg)
IDO
Config
Checker
Livestatus Checker
IDO
Checker
Perfdata GELF
![Page 35: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/35.jpg)
SECURITY IS A MESS
![Page 36: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/36.jpg)
• NSCA works, but not in a good way
• NRPE has a couple of security issues
• You can make it secure … by hand
![Page 37: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/37.jpg)
• Bidirectional communication using SSL
• “binlog” like retention for events
• Distributed features throughout the cluster
![Page 38: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/38.jpg)
CONFIGURATION LIMITS
![Page 39: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/39.jpg)
define service{
host_name linux1,linux2,linux3,...,linux9
service_description ssh-check
other service directives ...
}
![Page 40: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/40.jpg)
apply Service "ssh" {
import "generic-service”
check_command = "ssh”
assign where host.address && host.vars.os == "Linux”
}
![Page 41: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/41.jpg)
apply Service "ssh" {
import "generic-service”
check_command = "ssh”
assign where host.address && host.vars.os == "Linux”
ignore where host.vars.test == true
}
![Page 42: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/42.jpg)
define hostgroup{
hostgroup_name linux-servers
alias Linux Servers
members linux1,linux2,linux3
}
![Page 43: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/43.jpg)
object Host “mysql-server1" {
address = "10.0.0.1“
check_command = "hostalive“
}
object HostGroup "mysql-server" {
display_name = "MySQL Server“
assign where match("*mysql*", host.name)
}
![Page 44: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/44.jpg)
ONE MORE THING …
![Page 45: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/45.jpg)
object Service ”webservice" {
import "generic-service”
check_command = ”load”
host_name = “a really great server”
vars.load_wload1 = {{
if (get_time_period(“9to5”).is_inside) {
return 40
} else {
return 60
}
}}
}
![Page 46: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/46.jpg)
• Different config format
• Won’t miss the old config!
• It is really time for change
• You will love it!
![Page 47: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/47.jpg)
WHAT YOU SEE IS WHAT YOU
GET
![Page 48: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/48.jpg)
HOPEFULLY NOT!
![Page 49: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/49.jpg)
![Page 50: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/50.jpg)
![Page 51: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/51.jpg)
• Parsing status.dat is not really cool
• Executing commands is hard
• Very inflexible architecture
![Page 52: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/52.jpg)
• Limitations in current Icinga interfaces
• Really hard to extend and integrate
• No unified interface so far
![Page 53: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/53.jpg)
• Easy to extend and embed
• Multiple authentication providers
• Support for db and livestatus
• Responsive
![Page 54: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/54.jpg)
Web 2
Monitoring Docs
BP Graphite PNP
![Page 55: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/55.jpg)
Demo
![Page 56: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/56.jpg)
THE COMMUNITY
![Page 57: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/57.jpg)
You?
![Page 58: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/58.jpg)
Portland 2015
October 10th
Kuala Lumpur 2015
June 9th
![Page 59: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/59.jpg)
CONCLUSION
![Page 60: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/60.jpg)
![Page 61: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/61.jpg)
• Download Icinga 2
• Rethink you configuration
• Install Icinga Web 2 and play with it
• Give us feedback
#icinga
![Page 62: OSDC 2015: Bernd Erk | Why favour Icinga over Nagios](https://reader033.vdocuments.site/reader033/viewer/2022052700/55a5fceb1a28abbd738b46da/html5/thumbnails/62.jpg)
THANK YOU!
www.icinga.org
dev.icinga.org
git.icinga.org
@icinga
/icinga
+icinga