From: Michael Friedrich Date: Wed, 23 Apr 2014 12:58:44 +0000 (+0200) Subject: Add apply ping{4,6} to generic-host example config again. X-Git-Tag: v0.0.10~23 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e42a5724b26458c75250ca6d122cc729fabd7a1;p=icinga2 Add apply ping{4,6} to generic-host example config again. Fixes #6056 --- diff --git a/etc/icinga2/conf.d/generic-host.conf b/etc/icinga2/conf.d/generic-host.conf index 8f1f07078..cd61eff9f 100644 --- a/etc/icinga2/conf.d/generic-host.conf +++ b/etc/icinga2/conf.d/generic-host.conf @@ -6,6 +6,24 @@ template Host "generic-host" { check_command = "hostalive" } +apply Service "ping4" { + import "generic-service" + + check_command = "ping4" + + assign where "generic-host" in host.templates + ignore where !host.address +} + +apply Service "ping6" { + import "generic-service" + + check_command = "ping6" + + assign where "generic-host" in host.templates + ignore where !host.address6 +} + apply Notification "mail-icingaadmin" to Host { import "mail-host-notification"