[icinga-checkins] icinga.org: icinga-core/next: Icinga2: add detailed host and service dependency test config

git at icinga.org git at icinga.org
Fri May 3 17:53:57 CEST 2013


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

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Fri May  3 17:53:20 2013 +0200

Icinga2: add detailed host and service dependency test config

refs #2743

---

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

diff --git a/tests/etc/2743.cfg b/tests/etc/2743.cfg
index 0f311fb..9cbf035 100644
--- a/tests/etc/2743.cfg
+++ b/tests/etc/2743.cfg
@@ -373,6 +373,149 @@ define service {
 }
 
 
+##############################################
+# hostdependencies 
+##############################################
+
+define host {
+        host_name                       2743dep_host01
+        use                             2743hosttemplate01
+        hostgroups                      2743hg_dep1
+}
+
+define host {
+        host_name                       2743dep_host02
+        use                             2743hosttemplate01
+        hostgroups                      2743hg_dep1
+}
+
+define host {
+        host_name                       2743dep_host03
+        use                             2743hosttemplate01
+        hostgroups                      2743hg_dep2
+}
+
+define host {
+        host_name                       2743dep_host04
+        use                             2743hosttemplate01
+}
+
+define host {
+        host_name                       2743dep_host05
+        use                             2743hosttemplate01
+}
+
+define hostgroup {
+        hostgroup_name                  2743hg_dep1
+}
+
+define hostgroup {
+        hostgroup_name                  2743hg_dep2
+}
+
+
+# with host_name
+define hostdependency {
+        dependent_host_name             2743dep_host05
+        host_name                       2743dep_host04
+        inherits_parent                 1
+        notification_failure_criteria   d,u
+        execution_failure_criteria      d,u
+        dependency_period               24x7
+}
+
+# with hostgroup_name
+define hostdependency {
+        dependent_hostgroup_name        2743hg_dep1
+        hostgroup_name			2743hg_dep2
+        inherits_parent                 1
+        notification_failure_criteria   d,u
+        execution_failure_criteria      d,u
+        dependency_period               24x7
+}
+
+##############################################
+# servicedependencies 
+##############################################
+
+define host {
+        host_name                       2743dep_hostsvc01
+        use                             2743hosttemplate01
+}
+
+define host {
+        host_name                       2743dep_hostsvc02
+        use                             2743hosttemplate01
+}
+
+define host {
+        host_name                       2743dep_hostsvc03
+        use                             2743hosttemplate01
+        hostgroups                      2743hg_svcdep2
+}
+
+define host {
+        host_name                       2743dep_hostsvc04
+        use                             2743hosttemplate01
+}
+
+define host {
+        host_name                       2743dep_hostsvc05
+        use                             2743hosttemplate01
+}
+
+define hostgroup {
+        hostgroup_name                  2743hg_svcdep1
+}
+
+define hostgroup {
+        hostgroup_name                  2743hg_svcdep2
+}
+
+define service {
+        service_description             2743dep_svc01
+        host_name                       2743dep_hostsvc01,2743dep_hostsvc05,2743dep_hostsvc04,2743dep_hostsvc03
+        check_command                   2743test2
+        use                             generic-service
+}
+
+define service {
+        service_description             2743dep_svc02
+        host_name                       2743dep_hostsvc01,2743dep_hostsvc02
+        check_command                   2743test2
+        use                             generic-service
+}
+
+define service {
+        service_description             2743dep_svc03
+        host_name                       2743dep_hostsvc03
+        check_command                   2743test2
+        use                             generic-service
+}
+
+# with host_name and service_description
+define servicedependency {
+        host_name                       2743dep_hostsvc05
+        dependent_host_name             2743dep_hostsvc01
+        service_description             2743dep_svc01
+        dependent_service_description   2743dep_svc02
+        execution_failure_criteria      u,c
+        notification_failure_criteria   w,u,c
+	inherits_parent			1
+}
+
+# with hostgroup_name and service_description
+define servicedependency {
+        host_name                       2743dep_hostsvc05
+	hostgroup_name			2743hg_svcdep2	
+        dependent_host_name             2743dep_hostsvc01
+	dependent_hostgroup_name	2743hg_svcdep1
+        service_description             2743dep_svc01
+        dependent_service_description   2743dep_svc02
+        execution_failure_criteria      u,c
+        notification_failure_criteria   w,u,c
+        inherits_parent                 1
+}
 
 
 





More information about the icinga-checkins mailing list