ansible-role-zammad/templates/monit.j2
2022-12-27 20:09:23 +01:00

20 lines
1,017 B
Django/Jinja

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