22 lines
1.3 KiB
Django/Jinja
22 lines
1.3 KiB
Django/Jinja
check process {{ zammad_rails_service | splitext | first }} with pidfile {{ zammad_home }}/tmp/pids/server.pid
|
|
start program = "/usr/sbin/service {{ zammad_rails_service | splitext | first }} start"
|
|
stop program = "/usr/sbin/service {{ zammad_rails_service | splitext | first }} 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_service | splitext | first }}
|
|
matching "script/websocket-server.rb -b 127.0.0.1 -p 6042 start"
|
|
start program = "/usr/sbin/service {{ zammad_websocket_service | splitext | first }} start"
|
|
stop program = "/usr/sbin/service {{ zammad_websocket_service | splitext | first }} 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_worker_service | splitext | first }}
|
|
matching "script/background-worker.rb start"
|
|
start program = "/usr/sbin/service {{ zammad_worker_service | splitext | first }} start"
|
|
stop program = "/usr/sbin/service {{ zammad_worker_service | splitext | first }} stop"
|
|
if 2 restarts within 3 cycles then timeout
|
|
if cpu usage > 95% for 3 cycles then restart
|
|
if 5 restarts within 5 cycles then timeout
|