What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite...
Transcript of What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite...
![Page 2: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/2.jpg)
Playground
Vagrant VMhttp://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/getting-started#vagrant
![Page 3: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/3.jpg)
Modules & features
icinga2-enable-feature
icinga2-disable-feature
IDOUtilsgraphiteclassic-web (CGIs)…
![Page 4: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/4.jpg)
Icinga Web 2 (beta)
Icinga Camp Antwerphttps://www.icinga.org/community/events/icinga-camp-antwerp/
![Page 5: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/5.jpg)
Modules & features
icinga2-enable-feature
icinga2-disable-feature
IDOUtils
graphite
...
![Page 6: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/6.jpg)
Yet another New programming language
Types- lists, strings, numbers, ...Operatorshttp://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/configuring-icinga2#expression-operators
New VIM syntax highlightinghttps://github.com/Icinga/icinga2/tree/master/tools/syntax/vim
![Page 7: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/7.jpg)
Comments
// this is one-line comments
/*
this is
multi
line
comment
*/
# this is no longer comment
![Page 8: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/8.jpg)
Include
include <magic_file>
include “not_so_magic_file”
include “lot_of_files/*.conf”
include_recursive “directory”
// only *.conf
![Page 9: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/9.jpg)
Operators
http://docs.icinga.org/icinga2/latest/doc/module/icinga2/chapter/configuring-icinga2#expression-operators
display_name = Icinga2Location + “ rocks”
![Page 10: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/10.jpg)
Constants!
/etc/icinga2/constants.conf
![Page 11: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/11.jpg)
Time granularity
define service “is_it_friday” {
check_interval = 1h
retry_interval = 30m
...
}
check_interval = 1min
retry_check_interval
![Page 12: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/12.jpg)
Templates
template Host “Foo-Bar” {
bar
}
object Host “Foo-Bar-Praha” {
import “Foo-Bar”
}
![Page 13: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/13.jpg)
structured vars …
object Host "core-switch" {
import "generic-host"
address = "127.0.0.1"
vars.interfaces["0"] = {
port = 1
vlan = "internal"
address = "127.0.0.2"
qos = "enabled"
}
}
![Page 14: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/14.jpg)
Commands
define CheckCommand “ssh” { … }
define NotificationCommand “hipchat” { … }
define EventCommand “ipmi-restart” { … }
![Page 15: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/15.jpg)
Define command
define command “check” {
command = [ … “/check_ping” ]
args = {
“-H” = host.address
“-w” = host.vars.warn_timeout
...
}
}
![Page 16: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/16.jpg)
![Page 17: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/17.jpg)
Apply command
apply Service “foo” {
...
assign where (host.vars.location == ‘praha’)
}
![Page 18: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/18.jpg)
Advanced command
apply Service “check_disk_c” {
xxx
assign where (host.vars.has_disk_c)
}
![Page 19: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/19.jpg)
Advanced apply
apply Service “check_disk_c” {
xxx
assign where ((host.vars.has_disk_c)
&& (host.vars.has_nsca))
}
![Page 20: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/20.jpg)
for Loopsapply Service for (customer => config in host.vars.hosting) {
import "generic-service"
check_command = "ping4"
…}
![Page 21: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/21.jpg)
Na^H^HMonitoring plugins!
s/nagios-plugins/monitoring-plugins/
Extra opts:/etc/monitoring-plugins.ini
https://www.monitoring-plugins.org/doc/extra-opts.html
![Page 22: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/22.jpg)
![Page 23: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/23.jpg)
Random notes
- new notifications- distributed monitoring zones
![Page 24: What’s new · Modules & features icinga2-enable-feature icinga2-disable-feature IDOUtils graphite classic-web (CGIs) …](https://reader034.fdocuments.in/reader034/viewer/2022042313/5edd514dad6a402d66685d9e/html5/thumbnails/24.jpg)
ENOTIME