[icinga-checkins] icinga.org: icinga2/master: Update example config files.

git at icinga.org git at icinga.org
Thu Mar 14 13:18:28 CET 2013


Module: icinga2
Branch: master
Commit: df4a31556a97ba864c9ec0592a002471c022b759
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=df4a31556a97ba864c9ec0592a002471c022b759

Author: Gunnar Beutner <gunnar.beutner at netways.de>
Date:   Thu Mar 14 13:18:20 2013 +0100

Update example config files.

---

 etc/icinga2/icinga2.conf.dist  |   14 ++++++++------
 etc/icinga2/icinga2.conf.win32 |    2 +-
 2 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/etc/icinga2/icinga2.conf.dist b/etc/icinga2/icinga2.conf.dist
index d3bff8d..02a4759 100644
--- a/etc/icinga2/icinga2.conf.dist
+++ b/etc/icinga2/icinga2.conf.dist
@@ -31,12 +31,14 @@ local object CompatComponent "compat" { }
  * And finally we define some host that should be checked.
  */
 object Host "localhost" {
-  services = {
-    "ping4", "ping6",
-    "http_ip", "ssh",
-    "load", "processes",
-    "users", "disk"
-  },
+  services["ping4"] = { templates = [ "ping4" ] },
+  services["ping4"] = { templates = [ "ping4" ] }, 
+  services["http"] = { templates = [ "http_ip" ] }, 
+  services["ssh"] = { templates = [ "ssh" ] }, 
+  services["load"] = { templates = [ "load" ] }, 
+  services["processes"] = { templates = [ "processes" ] }, 
+  services["users"] = { templates = [ "users" ] }, 
+  services["disk"] = { templates = [ "disk" ] }, 
   
   macros = {
     address = "127.0.0.1",
diff --git a/etc/icinga2/icinga2.conf.win32 b/etc/icinga2/icinga2.conf.win32
index aeb6db7..89a32de 100644
--- a/etc/icinga2/icinga2.conf.win32
+++ b/etc/icinga2/icinga2.conf.win32
@@ -37,7 +37,7 @@ local object Component "compat" {
  * And finally we define some host that should be checked.
  */
 object Host "localhost" inherits "itl-host" {
-  services = { "ping4" },
+  services["ping4"] = { templates = [ "ping4" ] },
 
   macros = {
     address = "127.0.0.1"





More information about the icinga-checkins mailing list