#############################################################################################
# ICINGA TEST CONFIG BY ISSUES
# (c) 2009-2015 Icinga Development Team and Community Contributors
#
# #1502
# allow_empty_hostgroup_assignment not working as expected
#############################################################################################

define timeperiod{
	timeperiod_name 		testconfig-24x7_1502
	alias 				Always
	1970-01-01 - 2070-12-12 	00:00-24:00

}
define host{
	host_name 			test-generic-host_1502
	register 			0
	alias 				Generic Host Definition
	check_command 			true
	max_check_attempts 		1
	check_period 			testconfig-24x7_1502
	contacts 			admin_1502
	notification_interval 		10
	notification_period 		testconfig-24x7_1502
	name 				test-generic-host_1502
}
define contact{
	contact_name 			admin_1502
	host_notifications_enabled 	0
	service_notifications_enabled 	0
	host_notification_period 	testconfig-24x7_1502
	service_notification_period 	testconfig-24x7_1502
	host_notification_options 	u
	service_notification_options 	u
	host_notification_commands 	true
	service_notification_commands 	true
}
define service{
	service_description 		test-generic-service_1502
	name 				test-generic-service_1502
	register 			0
	is_volatile 			0
	max_check_attempts 		1
	check_interval 			3
	retry_interval 			5
	active_checks_enabled 		1
	passive_checks_enabled 		0
	check_period 			testconfig-24x7_1502
	obsess_over_service 		0
	check_freshness 		0
	event_handler_enabled 		1
	flap_detection_enabled 		1
	process_perf_data 		1
	retain_status_information 	1
	retain_nonstatus_information 	1
	notification_interval 		10
	notifications_enabled 		1
	failure_prediction_enabled 	1
}
define host{
	host_name 			localhost_1502
	address 			127.0.0.1
	use 				test-generic-host_1502
}
define hostgroup{
	hostgroup_name 			a
	alias 				alpha
}
define hostgroup{
	hostgroup_name 			b
	alias 				beta
	members 			localhost_1502
}
define service{
	hostgroup_name 			a
	service_description 		SSH Service Check
	check_command 			true
	use 				test-generic-service_1502
}
define command{
	command_line 			/bin/true
	command_name 			true
}
