zammad: Monit-Überwachung für ES
This commit is contained in:
parent
e6bec331a1
commit
554f84833d
3 changed files with 12 additions and 2 deletions
5
files/elasticsearch.monit
Normal file
5
files/elasticsearch.monit
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
check process elasticsearch with pidfile /run/elasticsearch/elasticsearch.pid
|
||||||
|
start program = "/usr/sbin/service elasticsearch start"
|
||||||
|
stop program = "/usr/sbin/service elasticsearch stop"
|
||||||
|
if failed host 127.0.0.1 port 9200 for 3 cycles then restart
|
||||||
|
if 5 restarts within 5 cycles then timeout
|
|
@ -75,3 +75,9 @@
|
||||||
RAILS_ENV: production
|
RAILS_ENV: production
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ zammad_user }}"
|
become_user: "{{ zammad_user }}"
|
||||||
|
|
||||||
|
- name: "elastic | Richte Monit-Überwachung ein"
|
||||||
|
copy:
|
||||||
|
src: elasticsearch.monit
|
||||||
|
dest: /etc/monit/conf-enabled/elasticsearch
|
||||||
|
notify: reload monit
|
||||||
|
|
|
@ -34,6 +34,5 @@
|
||||||
- import_tasks: gateway.yml
|
- import_tasks: gateway.yml
|
||||||
tags: gateway
|
tags: gateway
|
||||||
|
|
||||||
- name: Elastic
|
- import_tasks: elastic.yml
|
||||||
include_tasks: elastic.yml
|
|
||||||
tags: elastic
|
tags: elastic
|
||||||
|
|
Loading…
Reference in a new issue