CC-2828: Use monit to monitor rabbitmq-server

-potential solution for now...
This commit is contained in:
martin 2011-09-16 17:52:23 -04:00
parent 659e412eb7
commit 80da0ba4a9
1 changed files with 5 additions and 2 deletions

View File

@ -2,8 +2,7 @@
#set logfile syslog facility log_daemon
set logfile /var/log/monit.log
set httpd port 2812 and use address 127.0.0.1
allow localhost
set httpd port 2812
allow admin:monit
check process airtime-playout
@ -26,3 +25,7 @@
matching "/usr/bin/icecast2"
start program = "/etc/init.d/icecast2 start" with timeout 10 seconds
stop program = "/etc/init.d/icecast2 stop"
check process rabbitmq-server
matching "/usr/lib/erlang/erts-5.7.4/bin/beam.smp"
start program = "/etc/init.d/rabbitmq-server start" with timeout 10 seconds
stop program = "/etc/init.d/rabbitmq-server stop"