#############################################################################################
# ICINGA TEST CONFIG BY ISSUES
# (c) 2009-2015 Icinga Development Team and Community Contributors
#
# #3088
# no error checking on sub group expanding in configs
#############################################################################################

define contact{
        name                            3088testconfig-generic-contact         ; The name of this contact template
        service_notification_period     testconfig-24x7                    ; service notifications can be sent anytime
        host_notification_period        testconfig-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                    3088testconfig-admin
        use                             3088testconfig-generic-contact
        alias                           Icinga Test Admin

        email                           icinga@localhost        ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
}


define contactgroup{
	contactgroup_name		3088cg_A
	members				3088testconfig-admin
}

define contactgroup{
        contactgroup_name               3088cg_B
        members                         3088testconfig-admin
}

define contactgroup{
        contactgroup_name               3088cg_CBA
# uncomment this for error test
#        contactgroup_members            3008cg_C,3088cg_B,3088cg_A
}


define command{
	command_name			3088test
	command_line			/bin/echo "3088"
}


define hostgroup {
        hostgroup_name      		3088hg_A
        members             		3088localhost1
}

define hostgroup {
        hostgroup_name      		3088hg_B
        members             		3088localhost2
}

define hostgroup {
        hostgroup_name      		3088hg_CBA
# uncomment this for error test
#        hostgroup_members   		3088hg_C,3088hg_B,3088hg_A
}

define host {
        host_name       		3088localhost1
        alias   			3088localhost1
        address 			127.0.0.1
        check_period    		testconfig-24x7
        check_command   		3088test
        contact_groups  		testconfig-group-admin
        notification_period     	testconfig-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                       3088localhost2
        alias                           3088localhost2
        address                         127.0.0.1
        check_period                    testconfig-24x7
        check_command                   3088test
        contact_groups                  testconfig-group-admin
        notification_period             testconfig-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                    3088test2
        command_line                    /bin/echo "3088 service"
}


define servicegroup {
        servicegroup_name		3088sg_A
        members                         3088localhost1,3088service1
}

define servicegroup {
        servicegroup_name		3088sg_B
        members                         3088localhost2,3088service2
}

define servicegroup {
        servicegroup_name		3088sg_CBA
# uncomment this for error test
#        servicegroup_members		3088sg_C,3088sg_B,3088sg_A
}


define service {
        service_description             3088service1
        host_name                       3088localhost1,3088localhost2
        check_command                   3088test2
        use                             test-generic-service
}

define service {
        service_description             3088service2
        host_name                       3088localhost1,3088localhost2
        check_command                   3088test2
        use                             test-generic-service
}


