check process slapd with pidfile /var/lib/ldap/var/run/slapd.pid
	group db
	group slapd
	start program = "/sbin/service slapd start"
	stop program = "/sbin/service slapd stop"
	if failed host localhost port 389 protocol ldap3 then restart
	if 5 restarts within 5 cycles then timeout
	### in case of leaks:
	#if memory usage > 75% then restart
	depends on slapd_bin
	depends on slapd_rc

check file slapd_bin with path /usr/sbin/slapd
	group slapd
	if failed checksum then unmonitor
	if failed permission 755 then unmonitor
	if failed uid root then unmonitor
	if failed gid root then unmonitor

check file slapd_rc with path /etc/init.d/slapd
	group slapd
	if failed checksum then unmonitor
	if failed permission 755 then unmonitor
	if failed uid root then unmonitor
	if failed gid root then unmonitor
