File: http://svn.grimore.org/configuration-templates/monit/debian/templates/rabbitmq -

###########################################################################
##  Copyright (C) Wizardry and Steamworks 2017 - License: GNU GPLv3      ##
###########################################################################
 
check process rabbitmq with pidfile /var/run/rabbitmq/pid
	start program = "/etc/init.d/rabbitmq-server start"
	stop program = "/etc/init.d/rabbitmq-server stop"
	if failed port 5672 then restart
	# if 5 restarts within 5 cycles then timeout