]> granicus.if.org Git - icinga2/commitdiff
Config: only use one sample localhost
authorMichael Friedrich <michael.friedrich@gmail.com>
Fri, 12 Oct 2012 10:31:20 +0000 (12:31 +0200)
committerMichael Friedrich <michael.friedrich@gmail.com>
Fri, 12 Oct 2012 10:44:12 +0000 (12:44 +0200)
icinga-app/config/icinga2.conf.dist
icinga-app/config/icinga2.conf.win32

index 42698f4143b291033050c92c9d137b0d9b9be058..1dc47068201889c7f35ef6bca3c56c025f6997c2 100644 (file)
@@ -78,38 +78,9 @@ abstract object Service "icinga-service" {
 }
 
 /**
- * The service template for ping checks. In an Icinga 1.x environment
+ * The service templates for checks. In an Icinga 1.x environment
  * this would be defined as a check command.
  */
-abstract object Service "ping" inherits "icinga-service" {
-  check_command = "$plugindir$/check_ping -H $address$ -w $wrta$,$wpl$% -c $crta$,$cpl$%",
-
-  macros += {
-    wrta = 50,
-    wpl = 5,
-    crta = 100,
-    cpl = 10
-  }
-}
-
-/**
- * And finally we define some host that should be checked.
- */
-object Host "localhost" {
-  services = { "ping" },
-
-  macros = {
-    address = "127.0.0.1"
-  },
-
-  check_interval = 1m
-}
-
-
-
-/**
- * Below, an advanced example of checking a host and its services
- */
 
 /**
  * ping
@@ -196,8 +167,9 @@ abstract object Service "demo" inherits "icinga-service" {
 
 
 /**
- * one advanced icinga2 localhost
+ * And finally we define some host that should be checked.
  */
+
 object Host "localhost-i2" {
   services = {
     "ping", "ping6",
index ce13e9e0e47e30d06b77edc0db684a7af66cf242..39a499b9217ec47cce98affd456e2c705f363126 100644 (file)
@@ -80,7 +80,7 @@ abstract object Service "icinga-service" {
  * The service template for ping checks. In an Icinga 1.x environment
  * this would be defined as a check command.
  */
-abstract object Service "ping" inherits "icinga-service" {
+abstract object Service "ping4" inherits "icinga-service" {
 
   /* using check_winping from https://www.itefix.no/i2/check_winping */
   check_command = "$plugindir$\check_ping.exe -H $address$ -w $wrta$,$wpl$% -c $crta$,$cpl$%",
@@ -96,8 +96,8 @@ abstract object Service "ping" inherits "icinga-service" {
 /**
  * And finally we define some host that should be checked.
  */
-object Host "localhost" {
-  services = { "ping" },
+object Host "localhost-i2" {
+  services = { "ping4" },
 
   macros = {
     address = "127.0.0.1"