#
# monitoring apache2
#

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