Skip to content

Instantly share code, notes, and snippets.

@tuantm8
Created January 20, 2017 08:19
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tuantm8/981c612f7e08ea17e0b95c9cae740576 to your computer and use it in GitHub Desktop.
Save tuantm8/981c612f7e08ea17e0b95c9cae740576 to your computer and use it in GitHub Desktop.
Monit configuration for rabbitmq-server
check process rabbitmq-server matching "/usr/lib/erlang/erts-6.2/bin/beam"
group rabbitmq
start program = "/etc/init.d/rabbitmq-server start"
stop program = "/etc/init.d/rabbitmq-server stop"
if failed port 5672 type tcp then restart
if 3 restarts within 3 cycles then timeout
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment