[icinga-checkins] icinga.org: icinga-core/next: tests: add more icinga2 conversion config

git at icinga.org git at icinga.org
Tue May 28 22:03:13 CEST 2013


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

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Tue May 28 22:02:46 2013 +0200

tests: add more icinga2 conversion config

---

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

diff --git a/tests/etc/2743.cfg b/tests/etc/2743.cfg
index 49e5ec0..d9d67c8 100644
--- a/tests/etc/2743.cfg
+++ b/tests/etc/2743.cfg
@@ -209,6 +209,39 @@ define host {
         retain_nonstatus_information    1
 }
 
+define host {
+        host_name                       2743localhost3
+        alias                           2743localhost3
+        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
+}
+
 
 
 define command{
@@ -304,6 +337,13 @@ define service {
         use                             generic-service
 }
 
+define service {
+        service_description             2743servicewithhostgroups03
+        hostgroup_name                  2743hostgroupwithservicesmore,2743hostgroupwithservicesevenmore
+        check_command                   2743test2
+        use                             generic-service
+}
+
 define host {
 	host_name			2743hghost01
 	use				2743hosttemplate01
@@ -325,6 +365,16 @@ define hostgroup {
 	members			 	2743hghost02,2743hghost03	
 }
 
+define hostgroup {
+        hostgroup_name                  2743hostgroupwithservicesmore
+        members                         2743hghost02
+}
+
+define hostgroup {
+        hostgroup_name                  2743hostgroupwithservicesevenmore
+        members                         2743hghost03
+}
+
 
 
 ##############################################
@@ -516,7 +566,83 @@ define servicedependency {
         inherits_parent                 1
 }
 
+##############################################
+# service with wildcard '*' on host_name
+##############################################
+define service {
+        service_description             2743serviceforallhosts
+        host_name                  	*
+        check_command                   2743test2
+        use                             generic-service
+}
+
+##############################################
+# hostgroup members with wildcard '*'
+##############################################
+
+define hostgroup {
+        hostgroup_name                  2347hg_wildcard_all
+	members				*
+}
+
+##############################################
+# service with excludes on host_name
+##############################################
+define service {
+        service_description             2743servicewithexcludes
+        host_name                       2743localhost1,!2743localhost2,2743localhost3
+        check_command                   2743test2
+        use                             generic-service
+}
+
+##############################################
+# service and template with additive inheritance
+##############################################
+define service {
+        name             		2743servicetemplatecontacts
+        host_name                       2743localhost1
+        check_command                   2743test2
+        use                             generic-service
+	register			0
+	contacts			2743testconfig-admin
+}
 
+define service {
+        service_description             2743servicecontactsadditive
+        host_name                       2743localhost1
+        check_command                   2743test2
+        use                             2743servicetemplatecontacts
+        contacts                        +2743testconfig-manager,2743testconfig-operator
+}
+
+##############################################
+# host and hostgroup with additive inheritance
+##############################################
+
+define hostgroup {
+        hostgroup_name                  2347hg_additive01
+}
+
+define hostgroup {
+        hostgroup_name                  2347hg_additive02
+}
+
+define hostgroup {
+        hostgroup_name                  2347hg_additive03
+}
+
+define host {
+        name                       	2743additivetemplate_host01
+        use                             2743hosttemplate01
+	register			0
+	hostgroups			2347hg_additive01
+}
+
+define host {
+	host_name			2743additive_host01
+	use				2743additivetemplate_host01
+	hostgroups			+2347hg_additive03,2347hg_additive02
+}	
 
 
 





More information about the icinga-checkins mailing list