From af2645d7c1c193b2fda992c172e2cc68f155c6aa Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Sat, 12 Jul 2014 13:30:51 +0200 Subject: [PATCH] sample config: add check commands location hint (itl/plugin check commands) fixes #6713 --- etc/icinga2/conf.d/hosts/localhost/disk.conf | 5 +++++ etc/icinga2/conf.d/hosts/localhost/http.conf | 5 +++++ etc/icinga2/conf.d/hosts/localhost/icinga.conf | 5 +++++ etc/icinga2/conf.d/hosts/localhost/load.conf | 5 +++++ etc/icinga2/conf.d/hosts/localhost/procs.conf | 5 +++++ etc/icinga2/conf.d/hosts/localhost/ssh.conf | 5 +++++ etc/icinga2/conf.d/hosts/localhost/swap.conf | 5 +++++ etc/icinga2/conf.d/hosts/localhost/users.conf | 5 +++++ etc/icinga2/conf.d/services.conf | 6 +++++- etc/icinga2/conf.d/templates.conf | 4 ++++ etc/icinga2/conf.d/timeperiods.conf | 4 +++- 11 files changed, 52 insertions(+), 2 deletions(-) diff --git a/etc/icinga2/conf.d/hosts/localhost/disk.conf b/etc/icinga2/conf.d/hosts/localhost/disk.conf index f8b75819b..55da9c4f4 100644 --- a/etc/icinga2/conf.d/hosts/localhost/disk.conf +++ b/etc/icinga2/conf.d/hosts/localhost/disk.conf @@ -1,3 +1,8 @@ +/* + * The CheckCommand object `disk` is provided by + * the plugin check command templates. + * Check the documentation for details. + */ object Service "disk" { import "generic-service" diff --git a/etc/icinga2/conf.d/hosts/localhost/http.conf b/etc/icinga2/conf.d/hosts/localhost/http.conf index de126a95f..cedded91a 100644 --- a/etc/icinga2/conf.d/hosts/localhost/http.conf +++ b/etc/icinga2/conf.d/hosts/localhost/http.conf @@ -1,3 +1,8 @@ +/* + * The CheckCommand object `http` is provided by + * the plugin check command templates. + * Check the documentation for details. + */ object Service "http" { import "generic-service" diff --git a/etc/icinga2/conf.d/hosts/localhost/icinga.conf b/etc/icinga2/conf.d/hosts/localhost/icinga.conf index a52bfbead..9583aa70c 100644 --- a/etc/icinga2/conf.d/hosts/localhost/icinga.conf +++ b/etc/icinga2/conf.d/hosts/localhost/icinga.conf @@ -1,3 +1,8 @@ +/* + * The CheckCommand object `icinga` is provided by + * the icinga template library. + * Check the documentation for details. + */ object Service "icinga" { import "generic-service" diff --git a/etc/icinga2/conf.d/hosts/localhost/load.conf b/etc/icinga2/conf.d/hosts/localhost/load.conf index 7bb46c22f..64f38f285 100644 --- a/etc/icinga2/conf.d/hosts/localhost/load.conf +++ b/etc/icinga2/conf.d/hosts/localhost/load.conf @@ -1,3 +1,8 @@ +/* + * The CheckCommand object `load` is provided by + * the plugin check command templates. + * Check the documentation for details. + */ object Service "load" { import "generic-service" diff --git a/etc/icinga2/conf.d/hosts/localhost/procs.conf b/etc/icinga2/conf.d/hosts/localhost/procs.conf index d8e51a956..c91c6de14 100644 --- a/etc/icinga2/conf.d/hosts/localhost/procs.conf +++ b/etc/icinga2/conf.d/hosts/localhost/procs.conf @@ -1,3 +1,8 @@ +/* + * The CheckCommand object `procs` is provided by + * the plugin check command templates. + * Check the documentation for details. + */ object Service "procs" { import "generic-service" diff --git a/etc/icinga2/conf.d/hosts/localhost/ssh.conf b/etc/icinga2/conf.d/hosts/localhost/ssh.conf index 614ebca69..b07d2a3f4 100644 --- a/etc/icinga2/conf.d/hosts/localhost/ssh.conf +++ b/etc/icinga2/conf.d/hosts/localhost/ssh.conf @@ -1,3 +1,8 @@ +/* + * The CheckCommand object `ssh` is provided by + * the plugin check command templates. + * Check the documentation for details. + */ object Service "ssh" { import "generic-service" diff --git a/etc/icinga2/conf.d/hosts/localhost/swap.conf b/etc/icinga2/conf.d/hosts/localhost/swap.conf index f7a14bcdb..539cade87 100644 --- a/etc/icinga2/conf.d/hosts/localhost/swap.conf +++ b/etc/icinga2/conf.d/hosts/localhost/swap.conf @@ -1,3 +1,8 @@ +/* + * The CheckCommand object `swap` is provided by + * the plugin check command templates. + * Check the documentation for details. + */ object Service "swap" { import "generic-service" diff --git a/etc/icinga2/conf.d/hosts/localhost/users.conf b/etc/icinga2/conf.d/hosts/localhost/users.conf index ddfe73c98..4b6f45b8f 100644 --- a/etc/icinga2/conf.d/hosts/localhost/users.conf +++ b/etc/icinga2/conf.d/hosts/localhost/users.conf @@ -1,3 +1,8 @@ +/* + * The CheckCommand object `users` is provided by + * the plugin check command templates. + * Check the documentation for details. + */ object Service "users" { import "generic-service" diff --git a/etc/icinga2/conf.d/services.conf b/etc/icinga2/conf.d/services.conf index abce298bf..d973376a7 100644 --- a/etc/icinga2/conf.d/services.conf +++ b/etc/icinga2/conf.d/services.conf @@ -4,7 +4,11 @@ * Only applied if host objects are members of * the groups `linux-server` or `windows-server` * and having the `address` resp. `address6` - * attribute set. + * attribute set. + * + * The CheckCommand objects `ping4` and `ping6` + * are provided by the plugin check command templates. + * Check the documentation for details. */ apply Service "ping4" { diff --git a/etc/icinga2/conf.d/templates.conf b/etc/icinga2/conf.d/templates.conf index b883def7e..f98b4eb63 100644 --- a/etc/icinga2/conf.d/templates.conf +++ b/etc/icinga2/conf.d/templates.conf @@ -6,6 +6,10 @@ /** * Provides default settings for hosts. By convention * all hosts should import this template. + * + * The CheckCommand object `hostalive` is provided by + * the plugin check command templates. + * Check the documentation for details. */ template Host "generic-host" { max_check_attempts = 5 diff --git a/etc/icinga2/conf.d/timeperiods.conf b/etc/icinga2/conf.d/timeperiods.conf index eb9e73d64..21fac5277 100644 --- a/etc/icinga2/conf.d/timeperiods.conf +++ b/etc/icinga2/conf.d/timeperiods.conf @@ -1,6 +1,8 @@ /** * Sample timeperiods for Icinga 2 requiring - * 'legacy-timeperiod' template from the ITL. + * 'legacy-timeperiod' template from the Icinga + * Template Library (ITL). + * Check the documentation for details. */ object TimePeriod "24x7" { -- 2.50.1