[icinga-checkins] icinga.org: icinga-core/next: Icinga2: add a testcase for 1. x services with host_name in template

git at icinga.org git at icinga.org
Mon Apr 29 20:20:06 CEST 2013


Module: icinga-core
Branch: next
Commit: e613da8b17e6e95150364cdc36b5a61318a8ea48
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=e613da8b17e6e95150364cdc36b5a61318a8ea48

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Mon Apr 29 20:19:28 2013 +0200

Icinga2: add a testcase for 1.x services with host_name in template

refs #2743

---

 tests/etc/2743.cfg |   18 +++++++++++++++++-
 1 files changed, 17 insertions(+), 1 deletions(-)

diff --git a/tests/etc/2743.cfg b/tests/etc/2743.cfg
index b3a874d..5202048 100644
--- a/tests/etc/2743.cfg
+++ b/tests/etc/2743.cfg
@@ -202,7 +202,23 @@ define servicegroup {
 
 
 ##############################################
-# 
+# service templates with hostnames & services
+##############################################
+define service {
+        name				2743template01
+        host_name                       2743localhost1
+        check_command                   2743test2
+        use                             generic-service
+	register			0
+}
+
+define service {
+	service_description		2743servicewithhostnameintemplate
+	use 				2743template01
+}
+
+##############################################
+# services 
 ##############################################
 define service {
         service_description             2743service1





More information about the icinga-checkins mailing list