define host {
	host_name host1
	alias	host1 test
	address	192.168.1.1
	max_check_attempts 2
	check_period	none
	contacts	nagiosadmin
	notification_interval 60
	notification_period none
}
define host {
	host_name host2
	alias	host2 test
	address	192.168.2.2
	max_check_attempts 2
	check_period	none
	contacts	nagiosadmin
	notification_interval 60
	notification_period none
}
define host {
	host_name host3
	alias   host3 test
	address 192.168.2.3
	max_check_attempts 2
	check_period    none
	contacts        nagiosadmin
	notification_interval 60
	notification_period none
	hostgroups	+hosts-with-master-service
}
define hostgroup {
	hostgroup_name	hosts-with-master-service
	alias	Hosts running a master service
}
define service {
	host_name	host1
	service_description Dummy service
	check_command	check_me
	max_check_attempts	3
	check_interval	32
	retry_interval	1
	check_period	none
	notification_interval	60
	notification_period	none
	contacts	nagiosadmin
}
define service {
	host_name	host1,host2
	service_description	Uses important check command
	check_command	check_me!with some parameters
	max_check_attempts	5
	check_interval	15
	retry_interval	1
	check_period	none
	notification_interval	65
	notification_period	none
	contacts	nagiosadmin
	use	service-distributed
}
define service {
	name	service-distributed
	check_command	!set_to_stale
	register	0
}
define service {
        hostgroup_name  hosts-with-master-service
        service_description     master-service
        check_command   check_me!master service
        max_check_attempts      5
        check_interval  15
        retry_interval  1
        check_period    none
        notification_interval   65
        notification_period     none
        contacts        nagiosadmin
}
define service {
	host_name       host3
	service_description	dependent-service
	check_command	check_me!dependent service
	max_check_attempts	5
	check_interval	15
	retry_interval	1
	check_period	none
	notification_interval	65
	notification_period	none
	contacts	nagiosadmin
        servicegroups   +services-depending-on-master-service
}
define servicegroup {
	servicegroup_name	services-depending-on-master-service
	alias	Servicegroup for services depending on a "master" service on the same host
}
define command {
	command_name	set_to_stale
	command_line	/usr/local/nagios/libexec/set_to_stale
}
define command {
	command_name	check_me
	command_line	/usr/local/nagios/libexec/check_me
}
define command {
	command_name	with_continuation_lines
	command_line	$USER1$/check_foo one\
				two
}
define command {
	command_name	multiple_continuation_lines_with_spaces_intermingled
	command_line	\
		  check_nrpe_arg!30!\
	  	check_fs_ping!/mnt/account-p,/mnt/prepro-p,/mnt/webapp-ssl,/mnt/rollout-p
}
define timeperiod {
	timeperiod_name	none
	alias	Nothing
}
define contact {
	contact_name	nagiosadmin
	host_notifications_enabled	0
	service_notifications_enabled	0
	host_notification_period	none
	service_notification_period	none
	host_notification_options	d,u,f,r,s
	service_notification_options	w,u,c,r,f,s
	host_notification_commands	notify-none
	service_notification_commands	notify-none
}
define command {
	command_name	notify-none
	command_line /usr/local/nagios/notifications/notify-none
}
define contact {
	contact_name	second
	host_notifications_enabled	0
	service_notifications_enabled	0
	host_notification_period	none
	service_notification_period	none
	host_notification_options	d,u,f,r,s
	service_notification_options	w,u,c,r,f,s
	host_notification_commands	notify-none
	service_notification_commands	notify-none
}
	
define contactgroup {
	contactgroup_name	causetestfailure
	alias	This causes a test failure by having a comma separated list before the empty contactgroup
	members	nagiosadmin,second
}
define contactgroup {
	contactgroup_name	empty
	alias	No members defined - this should pass validation
}
define serviceescalation {
	host_name *
	service_description *,!Dummy service
}
define servicedependency {
	service_description	master-service
	dependent_servicegroup_name	services-depending-on-master-service
	execution_failure_criteria	n
	notification_failure_criteria	c,u
}
