ansible-role-zammad/templates/monit.j2

23 lines
1.3 KiB
Text
Raw Normal View History

2023-05-19 11:59:02 +02:00
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"
2023-06-07 23:16:49 +02:00
stop program = "/usr/sbin/service {{ zammad_rails_service | splitext | first }} stop"
2021-07-28 18:28:22 +02:00
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
2023-05-19 11:59:02 +02:00
check process {{ zammad_websocket_service | splitext | first }}
2021-07-28 18:28:22 +02:00
matching "script/websocket-server.rb -b 127.0.0.1 -p 6042 start"
2023-05-19 11:59:02 +02:00
start program = "/usr/sbin/service {{ zammad_websocket_service | splitext | first }} start"
stop program = "/usr/sbin/service {{ zammad_websocket_service | splitext | first }} stop"
2021-07-28 18:28:22 +02:00
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
2023-05-19 11:59:02 +02:00
check process {{ zammad_worker_service | splitext | first }}
matching "script/background-worker.rb start"
2023-06-07 23:16:49 +02:00
start program = "/usr/sbin/service {{ zammad_worker_service | splitext | first }} start"
2023-05-19 11:59:02 +02:00
stop program = "/usr/sbin/service {{ zammad_worker_service | splitext | first }} stop"
2021-07-28 18:28:22 +02:00
if 2 restarts within 3 cycles then timeout
if cpu usage > 95% for 3 cycles then restart
2023-05-19 11:59:02 +02:00
if 5 restarts within 5 cycles then timeout