[icinga-checkins] icinga.org: icinga2/next: Documentation: Fix migration examples.

git at icinga.org git at icinga.org
Wed Jun 4 22:43:14 CEST 2014


Module: icinga2
Branch: next
Commit: 72f529875f767eeecfe7765a039fd891408d4fef
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=72f529875f767eeecfe7765a039fd891408d4fef

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Wed Jun  4 22:40:41 2014 +0200

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 d1eccef..596e95e 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



More information about the icinga-checkins mailing list