#
# monitoring docker
#
# control only docker, do not control containers
#

# monitor service
check process docker with pidfile /var/run/docker.pid
	start program = "/usr/sbin/service docker start" with timeout 20 seconds
	stop program  = "/usr/sbin/service docker stop"
	if 3 restarts within 5 cycles then exec "/opt/bertin/mediacentric/bin/monit_alert_restart.sh docker" repeat every 1 cycle