From 72f529875f767eeecfe7765a039fd891408d4fef Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Wed, 4 Jun 2014 22:40:41 +0200 Subject: [PATCH] Documentation: Fix migration examples. Thanks Tom :) Refs #6380 --- doc/8-migration.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/8-migration.md b/doc/8-migration.md index d1eccef00..596e95e00 100644 --- a/doc/8-migration.md +++ b/doc/8-migration.md @@ -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 -- 2.40.0