ansible-role-zammad/templates/monit.j2

21 lines
1,017 B
Text
Raw Normal View History

2021-07-28 18:28:22 +02:00
check process zammad-rails with pidfile {{ zammad_home }}/tmp/pids/server.pid
start program = "/usr/sbin/service zammad-rails start"
stop program = "/usr/sbin/service zammad-rails stop"
if 2 restarts within 3 cycles then timeout
if cpu usage > 95% for 3 cycles then restart
if failed host 127.0.0.1 port 3000 for 3 cycles then restart
check process zammad-websocket
matching "script/websocket-server.rb -b 127.0.0.1 -p 6042 start"
start program = "/usr/sbin/service zammad-websocket start"
stop program = "/usr/sbin/service zammad-websocket stop"
if 2 restarts within 3 cycles then timeout
if cpu usage > 95% for 3 cycles then restart
if failed host 127.0.0.1 port 6042 for 3 cycles then restart
check process zammad-scheduler with pidfile {{ zammad_home }}/tmp/pids/scheduler.pid
start program = "/usr/sbin/service zammad-scheduler start"
stop program = "/usr/sbin/service zammad-scheduler stop"
if 2 restarts within 3 cycles then timeout
if cpu usage > 95% for 3 cycles then restart