]> granicus.if.org Git - icinga2/commitdiff
Documentation: Fix migration examples.
authorMichael Friedrich <michael.friedrich@netways.de>
Wed, 4 Jun 2014 20:40:41 +0000 (22:40 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Wed, 4 Jun 2014 20:42:58 +0000 (22:42 +0200)
Thanks Tom :)

Refs #6380

doc/8-migration.md

index d1eccef00a4af6321641ea1319c52dc6eedacb4a..596e95e003e3727436fe16962e7716517f3aefb1 100644 (file)
@@ -50,6 +50,7 @@ Icinga 1.x:
 Icinga 2:
 
     object Service "service1" {
+      import "generic-service"
       host_name = "localhost1"
       check_command = "test_customvar"
       check_interval = 5m
@@ -76,8 +77,7 @@ Icinga 2:
       import "generic-service"
       check_command = "test_check"
 
-      assign where host.name == "localhost1"
-      assign where host.name == "localhost2"
+      assign where host.name in [ "localhost1", "localhost2" ]
     }
 
 In Icinga 1.x you would have organized your services with hostgroups using the `hostgroup_name` attribute