From e873ce6b9c9118271f60bb41ee858af766c3116b Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Thu, 22 May 2014 23:05:39 +0200 Subject: [PATCH] Fix wrong service apply rule examples for ping{4,6}. Refs #6266 --- doc/2-getting-started.md | 8 ++++---- etc/icinga2/conf.d/services.conf | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/doc/2-getting-started.md b/doc/2-getting-started.md index 72e26b26c..f4dde87db 100644 --- a/doc/2-getting-started.md +++ b/doc/2-getting-started.md @@ -306,8 +306,8 @@ a valid `address` resp. `address6` attribute will be excluded. check_command = "ping4" vars.sla = "24x7" - assign where "linux-server" in host.groups - assign where "windows-server" in host.groups + assign where "linux-servers" in host.groups + assign where "windows-servers" in host.groups ignore where host.address == "" } @@ -317,8 +317,8 @@ a valid `address` resp. `address6` attribute will be excluded. check_command = "ping6" vars.sla = "24x7" - assign where "linux-server" in host.groups - assign where "windows-server" in host.groups + assign where "linux-servers" in host.groups + assign where "windows-servers" in host.groups ignore where host.address6 == "" } diff --git a/etc/icinga2/conf.d/services.conf b/etc/icinga2/conf.d/services.conf index 0c6d38a1c..abce298bf 100644 --- a/etc/icinga2/conf.d/services.conf +++ b/etc/icinga2/conf.d/services.conf @@ -13,8 +13,8 @@ apply Service "ping4" { check_command = "ping4" vars.sla = "24x7" - assign where "linux-server" in host.groups - assign where "windows-server" in host.groups + assign where "linux-servers" in host.groups + assign where "windows-servers" in host.groups ignore where host.address == "" } @@ -24,8 +24,8 @@ apply Service "ping6" { check_command = "ping6" vars.sla = "24x7" - assign where "linux-server" in host.groups - assign where "windows-server" in host.groups + assign where "linux-servers" in host.groups + assign where "windows-servers" in host.groups ignore where host.address6 == "" }