diff --git a/files/influxdb.monit b/files/influxdb.monit deleted file mode 100644 index 4d529d3..0000000 --- a/files/influxdb.monit +++ /dev/null @@ -1,9 +0,0 @@ -# {{ ansible_managed }} - -check process influxdb - matching "/usr/bin/influxd -config /etc/influxdb/influxdb.conf" - group database - start program = "/usr/sbin/service influxd start" - stop program = "/usr/sbin/service influxd stop" - if failed host localhost port 8088 with timeout 15 seconds for 3 times within 4 cycles then restart - if 5 restarts with 5 cycles then timeout diff --git a/tasks/grafana.yml b/tasks/grafana.yml index 3d61c7a..f1bcac7 100644 --- a/tasks/grafana.yml +++ b/tasks/grafana.yml @@ -20,13 +20,10 @@ - name: "grafana | Aktiviere Monit-Ueberwachung" ansible.builtin.copy: - src: "{{ item }}.monit" - dest: "/etc/monit/conf-enabled/{{ item }}" + src: "grafana.monit" + dest: "/etc/monit/conf-enabled/grafana" mode: 0644 notify: reload monit - loop: - - grafana - - influxdb - name: "grafana | fail2ban-Konfiguration kopieren" ansible.builtin.copy: