]> granicus.if.org Git - icinga2/commitdiff
Add apply ping{4,6} to generic-host example config again.
authorMichael Friedrich <michael.friedrich@netways.de>
Wed, 23 Apr 2014 12:58:44 +0000 (14:58 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Wed, 23 Apr 2014 12:58:44 +0000 (14:58 +0200)
Fixes #6056

etc/icinga2/conf.d/generic-host.conf

index 8f1f070785fe900e340887396519b4e39ae1d25d..cd61eff9ff9a45d29b954dbd6b6d21e3b6372c6b 100644 (file)
@@ -6,6 +6,24 @@ template Host "generic-host" {
   check_command = "hostalive"
 }
 
+apply Service "ping4" {
+  import "generic-service"
+
+  check_command = "ping4"
+
+  assign where "generic-host" in host.templates
+  ignore where !host.address
+}
+
+apply Service "ping6" {
+  import "generic-service"
+
+  check_command = "ping6"
+
+  assign where "generic-host" in host.templates
+  ignore where !host.address6
+}
+
 apply Notification "mail-icingaadmin" to Host {
   import "mail-host-notification"