#############################################################################################
# ICINGA TEST CONFIG BY ISSUES
# (c) 2009-2015 Icinga Development Team and Community Contributors
#
# #3397
# faulty macro cleaning, replacing spaces with pluses where they shouldn't be cleaned
#############################################################################################

define command {
        command_name    		3397check_macro_clean
        command_line    		/bin/echo "svc: $SERVICEDESC$ dur: $SERVICEDURATION$"
}

define host{
        name                            3397linux-server
        use                             test-generic-host
        check_period                    testconfig-24x7
        check_interval                  5
        retry_interval                  1
        max_check_attempts              10
        check_command                   testconfig-check-host-alive
        notification_period             testconfig-workhours
        notification_interval           120
        notification_options            d,u,r
        contact_groups                  testconfig-group-admin
	register                        0
}


define host{
        use                     	3397linux-server
        host_name               	3397localhost
        alias                   	3397localhost
        address                 	127.0.0.1
        address6                	::1
        }


define  service {
        name                            3397generic-macro-check
        is_volatile                     0
	check_command			3397check_macro_clean
        max_check_attempts              2
        check_interval		           2
        retry_interval		            1
        active_checks_enabled           1
        passive_checks_enabled          1
        check_period                    testconfig-24x7
        parallelize_check               1
        obsess_over_service             1
        check_freshness                 0
        event_handler_enabled           1
        flap_detection_enabled          1
        process_perf_data               1
        retain_status_information       1
        retain_nonstatus_information    1
        contact_groups                  abc
        notification_interval           120
        notification_period             testconfig-24x7
        notification_options            w,u,c,r,f
        notifications_enabled           1
        register                        0
}

define  service {
        use                             3397generic-macro-check
        host_name                       3397localhost
        contact_groups                 	testconfig-group-admin
        service_description             3397 macro clean
}



