define service {
	name	scripts-service
	use	generic-service
        max_check_attempts	6
        normal_check_interval	2
	retry_check_interval	1
        contact_groups  scripts
	notification_interval	240
        notification_period	24x7
        notification_options    w,u,c,r
	register 0
}

define service {
        use                             scripts-service
        hostgroup_name			all-remote
        service_description             PING
	check_command			check_ping!500.0,30%!3000.0,80%
        }


define service {
	use	scripts-service
	hostgroup_name	real-servers
	service_description	SSH
	check_command	check_ssh
}

define service {
	use	scripts-service
	host_name	scripts
	service_description	SSH
	check_command	check_ssh
	notification_period	afs
	contact_groups	scripts,pagers
}

define service {
	use	scripts-service
	hostgroup_name	scripts-http
	service_description	HTTP
	notification_period	afs
	check_command	check_http_heartbeat
	contact_groups	scripts,pagers
}

define service {
	use	scripts-service
	hostgroup_name		scripts-https
	service_description	HTTPS
	notification_period	afs
	check_command	check_https_cert!14
	contact_groups	scripts,pagers
}

define service {
	use	scripts-service
	hostgroup_name	scripts-mail
	service_description	POSTFIX
	check_command	check_remote_procs_u!1:128!1:256!postfix
}

define service {
	use	scripts-service
	hostgroup_name	scripts-user
	service_description	NSCD
	check_command	check_remote_procs_u!1:256!1:512!nscd
}

define service {
       use     scripts-service
       hostgroup_name	scripts-mail
       service_description	SMTP
       check_command	check_smtp
}

define service {
       use     scripts-service
       host_name	scripts
       notification_period	afs
       service_description	SMTP
       check_command	check_smtp
}

define service {
	use	scripts-service
	hostgroup_name	scripts-cron
	service_description	CRON
	check_command	check_remote_procs_C!1:!1:!crond
}

define service {
	use	scripts-service
	hostgroup_name	real-servers
	service_description	DISK
	check_command	check_remote_disk!10%!5%
}

define service {
	use	scripts-service
	host_name	b-m,o-f
	service_description	LOAD
	check_command	check_remote_load!16:10:10!20:15:15
}

define service {
	use	scripts-service
	hostgroup_name	mysql-masters,mysql-slaves
	service_description	LOAD
	check_command	check_remote_load!13:5:5!15:7:7
	contact_groups  sql
}

define service {
	use	scripts-service
	hostgroup_name	scripts-user
	service_description	USERS
	check_command	check_remote_users!50!25
}

define service {
	use	scripts-service
	hostgroup_name	scripts-mysql
	service_description	MYSQL
	check_command	check_tcp!3306
	contact_groups	sql,scripts,pagers
}

define service {
	use	scripts-service
	hostgroup_name	scripts-mysql
	service_description	HTTP
	notification_period	afs
	check_command	check_http
	contact_groups	sql,scripts,pagers
}

define service {
	use	scripts-service
	hostgroup_name	mysql-masters
	service_description	MYSQL-M
	check_command	check_remote_mysql
	contact_groups  sql
}

define service {
	use	scripts-service
	hostgroup_name	mysql-slaves
	service_description	MYSQL-S
	check_command	check_remote_mysql_slave
	contact_groups  sql
}

define service {
	use	scripts-service
	host_name	b-m,o-f
	service_description	CPU
	notifications_enabled	0
	check_command	check_remote_procs_P!4!6!50
}
