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 {
	name	scripts-nrpe-service
	use	scripts-service
	notification_options	w,c,r
	register 0
}

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


define service {
	use	scripts-service
	hostgroup_name	scripts-real
	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-https
	service_description	HTTPS-CERT
	notification_period	afs
	check_command	check_https_cert_444!14
	contact_groups	scripts,pagers
}

define service {
	use	scripts-service
	host_name	scripts
	service_description	SVN
	check_command	check_svn
	notification_period	afs
}

define service {
	use	scripts-service
	hostgroup_name	scripts-user
	service_description	SVN
	check_command	check_svn
	notification_period	afs
}

define servicedependency{
	host_name			scripts
	service_description		HTTP
	dependent_host_name		scripts,scripts-cert,wildcard.scripts
	dependent_service_description	HTTPS,HTTPS-CERT
	execution_failure_criteria	n
	notification_failure_criteria	w,u,c
	}

define servicedependency{
	host_name			scripts
	service_description		HTTP
	dependent_host_name		scripts-cert
	dependent_service_description	HTTP
	execution_failure_criteria	n
	notification_failure_criteria	w,u,c
	}


define service {
	use	scripts-nrpe-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	HTTP
	notification_period	afs
	check_command	check_http_heartbeat
	contact_groups	scripts
}

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

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

define service {
	use scripts-nrpe-service
	hostgroup_name scripts-user
	service_description	AFS
	notification_period	afs
	check_command	check_remote_afs
}

define service {
	use scripts-nrpe-service
	hostgroup_name scripts-user
	service_description	CRON-WORKING
	notification_period	afs
	check_command	check_remote_cron_working
}

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

define service {
    use scripts-service
    hostgroup_name scripts-user
    service_description LDAP
    check_command check_scripts_ldap
}

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-nrpe-service
	hostgroup_name	scripts-cron
	service_description	CRON
	check_command	check_remote_procs_C!1:!1:!crond
}

define service {
	use	scripts-service
	hostgroup_name	scripts-real
	service_description	NRPE
	check_command	check_nrpe_alive
}

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

define service {
	use	scripts-nrpe-service
	hostgroup_name	scripts-user
	service_description	LOAD
	check_command	check_remote_load!50:50:50!100:50:50
}

define service {
	use	scripts-nrpe-service
	hostgroup_name	mysql-masters,mysql-slaves
	service_description	LOAD
	check_command	check_remote_load!16:10:10!20:15:15
	contact_groups  sql
}

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-nrpe-service
	hostgroup_name	mysql-masters
	service_description	MYSQL-M
	check_command	check_remote_mysql
	contact_groups  sql,scripts
}

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

define service {
	use	scripts-nrpe-service
	hostgroup_name	scripts-user
	service_description	CPU
	notifications_enabled	0
	check_command	check_remote_procs_P!4!6!50
}
