[icinga-checkins] icinga.org: icinga-core/tdressler/fixes: ConfigConvert: import #2743 special configs

git at icinga.org git at icinga.org
Sun Apr 14 21:29:13 CEST 2013


Module: icinga-core
Branch: tdressler/fixes
Commit: 34d6b0d8b578015561428e31b95166d149b93552
URL:    https://git.icinga.org/?p=icinga-core.git;a=commit;h=34d6b0d8b578015561428e31b95166d149b93552

Author: Michael Friedrich <michael.friedrich at netways.de>
Date:   Fri Apr  5 17:50:31 2013 +0200

ConfigConvert: import #2743 special configs

this is a started collection of specialities discovered while writing
the script itsself. will be enhanced later on.

refs #2743

---

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

diff --git a/tests/etc/2743.cfg b/tests/etc/2743.cfg
new file mode 100644
index 0000000..b3a874d
--- /dev/null
+++ b/tests/etc/2743.cfg
@@ -0,0 +1,254 @@
+#############################################################################################
+# ICINGA TEST CONFIG BY ISSUES
+# (c) 2009-2013 Icinga Development Team and Community Contributors
+#
+# #2743
+# icinga2 config conversion - collect all the "special" here
+#############################################################################################
+
+define contact{
+        name                            2743testconfig-generic-contact         ; The name of this contact template
+        service_notification_period     24x7                    ; service notifications can be sent anytime
+        host_notification_period        24x7                    ; host notifications can be sent anytime
+        service_notification_options    w,u,c,r,f,s             ; send notifications for all service states, flapping events, and scheduled downtime events
+        host_notification_options       d,u,r,f,s               ; send notifications for all host states, flapping events, and scheduled downtime events
+        service_notification_commands   true                    ; send service notifications via email
+        host_notification_commands      true                    ; send host notifications via email
+        register                        0                       ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL CONTACT, JUST A TEMPLATE!
+}
+
+
+define contact{
+        contact_name                    2743testconfig-admin
+        use                             2743testconfig-generic-contact
+        alias                           Icinga Test Admin
+
+        email                           icinga at localhost        ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
+	contactgroups			2743cg_all,2743cg_ops
+}
+
+define contact{
+        contact_name                    2743testconfig-user
+        use                             2743testconfig-generic-contact
+        alias                           Icinga Test User
+
+        email                           icinga at localhost        ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
+}
+
+define contact{
+        contact_name                    2743testconfig-manager
+        use                             2743testconfig-generic-contact
+        alias                           Icinga Test Manager
+
+        email                           icinga at localhost        ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
+}
+
+define contact{
+        contact_name                    2743testconfig-operator
+        use                             2743testconfig-generic-contact
+        alias                           Icinga Test Operator
+
+        email                           icinga at localhost        ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
+}
+
+define contact{
+        contact_name                    2743testconfig-ticket
+        use                             2743testconfig-generic-contact
+        alias                           Icinga Test Ticket
+
+        email                           icinga at localhost        ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
+}
+
+define contactgroup{
+	contactgroup_name		2743cg_all
+	members				2743testconfig-user,2743testconfig-manager,2743testconfig-operator
+}
+
+define contactgroup{
+        contactgroup_name               2743cg_ops
+        members                         2743testconfig-operator
+}
+
+define contactgroup{
+        contactgroup_name               2743cg_manager
+        members                         2743testconfig-manager,2743testconfig-admin
+}
+
+define contactgroup{
+        contactgroup_name               2743cg_CBA
+# uncomment this for error test
+#        contactgroup_members            3008cg_C,2743cg_B,2743cg_A
+}
+
+
+define command{
+	command_name			2743test
+	command_line			/bin/echo "2743"
+}
+
+
+define hostgroup {
+        hostgroup_name      		2743hg_A
+        members             		2743localhost1
+}
+
+define hostgroup {
+        hostgroup_name      		2743hg_B
+        members             		2743localhost2
+}
+
+define hostgroup {
+        hostgroup_name      		2743hg_CBA
+# uncomment this for error test
+#        hostgroup_members   		2743hg_C,2743hg_B,2743hg_A
+}
+
+define host {
+        host_name       		2743localhost1
+        alias   			2743localhost1
+        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 host {
+        host_name                       2743localhost2
+        alias                           2743localhost2
+        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{
+        command_name                    2743test2
+        command_line                    /bin/echo "2743 service"
+}
+
+##############################################
+# hostgroup re-link test
+##############################################
+define hostgroup {
+	hostgroup_name			2347hg_many
+	members				2743localhost1,2743localhost2
+}
+##############################################
+# servicegroup re-link test
+##############################################
+define servicegroup {
+        servicegroup_name		2743sg_many
+        members                         2743localhost1,2743service1,2743localhost2,2743service2,2743localhost1,2743service3,2743localhost1,2743service4,2743localhost1,2743service5,2743localhost1,2743service6
+}
+
+define servicegroup {
+        servicegroup_name		2743sg_B
+        members                         2743localhost2,2743service2
+}
+
+define servicegroup {
+        servicegroup_name		2743sg_CBA
+# uncomment this for error test
+#        servicegroup_members		2743sg_C,2743sg_B,2743sg_A
+}
+
+
+##############################################
+# 
+##############################################
+define service {
+        service_description             2743service1
+        host_name                       2743localhost1,2743localhost2
+        check_command                   2743test2
+        use                             generic-service
+}
+
+define service {
+        service_description             2743service2
+        host_name                       2743localhost1,2743localhost2
+        check_command                   2743test2
+        use                             generic-service
+}
+
+define service {
+        service_description             2743service3
+        host_name                       2743localhost1,2743localhost2
+        check_command                   2743test2
+        use                             generic-service
+}
+
+define service {
+        service_description             2743service4
+        host_name                       2743localhost1,2743localhost2
+        check_command                   2743test2
+        use                             generic-service
+}
+
+define service {
+        service_description             2743service5
+        host_name                       2743localhost1,2743localhost2
+        check_command                   2743test2
+        use                             generic-service
+}
+
+define service {
+        service_description             2743service6
+        host_name                       2743localhost1,2743localhost2
+        check_command                   2743test2
+        use                             generic-service
+}
+
+
+
+
+
+
+





More information about the icinga-checkins mailing list