]> granicus.if.org Git - icinga2/commitdiff
Documentation: Fix service dependency example.
authorMichael Friedrich <michael.friedrich@netways.de>
Fri, 29 Nov 2013 08:42:55 +0000 (09:42 +0100)
committerMichael Friedrich <michael.friedrich@netways.de>
Fri, 29 Nov 2013 08:42:55 +0000 (09:42 +0100)
Fixes #5243

doc/6-advanced-topics.md

index cdb7f5dba275f2d7c9fa91279451bb595b6d6532..a087145f3e67ea946fdfda56b1c333d9b8da94d3 100644 (file)
@@ -242,7 +242,7 @@ router's firewall.
         templates = "generic-service",
         check_command = "ping4"
       }
-      
+
       macros = {
         address = "192.168.1.1",
       },
@@ -251,10 +251,12 @@ router's firewall.
     object Host "google-dns" {
       services["ping4"] = {
         templates = "generic-service",
-        check_command = "ping4"
-        service_dependencies = { "dsl-router", "ping4" }
+        check_command = "ping4",
+        service_dependencies = [
+          { host = "dsl-router", service = "ping4" }
+        ]
       }
-      
+
       macros = {
         address = "8.8.8.8",
       },