[icinga-checkins] icinga.org: icinga-core/next: Icinga2: import more conversion config for #2743

git at icinga.org git at icinga.org
Tue Apr 30 21:56:25 CEST 2013


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

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Tue Apr 30 21:55:59 2013 +0200

Icinga2: import more conversion config for #2743

---

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

diff --git a/tests/etc/2743.cfg b/tests/etc/2743.cfg
index 2ab5162..0f311fb 100644
--- a/tests/etc/2743.cfg
+++ b/tests/etc/2743.cfg
@@ -103,6 +103,46 @@ define hostgroup {
 #        hostgroup_members   		2743hg_C,2743hg_B,2743hg_A
 }
 
+
+# host templates
+
+define host {
+        name                       	2743hosttemplate01
+        address                         127.0.0.1
+        check_period                    24x7
+        check_command                   2743test
+        contact_groups                  testconfig-group-admin
+        notification_period             workhours
+        initial_state                   o
+        check_interval                  5.000000
+        retry_interval                  1.000000
+        max_check_attempts              10
+        active_checks_enabled           1
+        passive_checks_enabled          1
+        obsess_over_host                1
+        event_handler_enabled           1
+        low_flap_threshold              0.000000
+        high_flap_threshold             0.000000
+        flap_detection_enabled          1
+        flap_detection_options          o,d,u
+        freshness_threshold             0
+        check_freshness                 0
+        notification_options            d,u,r
+        notifications_enabled           1
+        notification_interval           120.000000
+        first_notification_delay        0.000000
+        stalking_options                n
+        process_perf_data               1
+        failure_prediction_enabled      1
+        retain_status_information       1
+        retain_nonstatus_information    1
+	register 			0
+}
+
+
+
+# hosts
+
 define host {
         host_name       		2743localhost1
         alias   			2743localhost1
@@ -169,6 +209,8 @@ define host {
         retain_nonstatus_information    1
 }
 
+
+
 define command{
         command_name                    2743test2
         command_line                    /bin/echo "2743 service"
@@ -245,6 +287,45 @@ define service {
         host_name                       2743localhost1
 }
 
+##############################################
+# service with hostgroups and host members
+##############################################
+define service {
+        service_description             2743servicewithhostgroup01
+	hostgroup_name			2743hostgroupwithservices
+        check_command                   2743test2
+        use                             generic-service
+}
+
+define service {
+        service_description             2743servicewithhostgroup02
+        hostgroup_name                  2743hostgroupwithservices
+        check_command                   2743test2
+        use                             generic-service
+}
+
+define host {
+	host_name			2743hghost01
+	use				2743hosttemplate01
+	hostgroups			2743hostgroupwithservices
+}
+
+define host {
+	host_name			2743hghost02
+	use				2743hosttemplate01
+}
+
+define host {
+	host_name			2743hghost03
+	use				2743hosttemplate01
+}
+
+define hostgroup {
+	hostgroup_name			2743hostgroupwithservices
+	members			 	2743hghost02,2743hghost03	
+}
+
+
 
 ##############################################
 # services 





More information about the icinga-checkins mailing list