#############################################################################################
# ICINGA TEST CONFIG BY ISSUES
# (c) 2009-2013 Icinga Development Team
#
# #2291
# non existant macros are not replaced, and misleading to single dollar signs
# requires resource.ccfg entry with $USER5$=password$foo$
#############################################################################################


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

define host{
        use                     	2291linux-server
        host_name               	2291localhost
        display_name            	2291display_localhost
        alias                   	2291localhost
        address                 	127.0.0.1
}

define command{
        command_name                    2291macro_test1
        command_line                    $USER1$/check_procs -w $ARG1$ -c $ARG2$ -C $UNKNOWNHOSTMACRO1$
}

define command{
        command_name                    2291macro_test2
        command_line                    $USER1$/check_procs -w $ARG1$ -c $ARG2$ -C $UNKNOWSERVICENMACRO1$
}

define command{
        command_name                    2291macro_test3
        command_line                    $USER1$/check_procs -w $ARG1$ -c $ARG2$ -C '$USER5$'
}


define service {
	name                           	2291default-servicecheck
	register                       	0
	service_description             2291Macro Test
	check_command                   2291macro_test2!5!10
	max_check_attempts              3
	check_interval                  7
	retry_interval                  3
	active_checks_enabled           1
	check_period                    testconfig-24x7
	obsess_over_service             0
	check_freshness                 1
	event_handler_enabled           0
	notification_interval           10
}

define service {
	use                             2291default-servicecheck
	host_name			2291localhost
	name                            2291Macro Test
	service_description             2291Macro Test
}

define service {
        use                             2291default-servicecheck
        host_name                       2291localhost
        name                            2291UserMacro Test
        service_description             2291UserMacro Test
	check_command                   2291macro_test3!5!10
}
