1 # openldap monit-cn template
3 check process openldap with pidfile "/var/run/slapd/slapd.pid"
4 start program = "/etc/init.d/slapd start"
5 stop program = "/etc/init.d/slapd stop"
6 if failed host 127.0.0.1 port 389 protocol ldap3
7 with timeout 10 seconds
9 if 5 restarts within 5 cycles then timeout