From eef1930fa9415186ba83a1fd3b984380e415cc86 Mon Sep 17 00:00:00 2001 From: phil Date: Wed, 28 Dec 2022 16:46:43 +0100 Subject: [PATCH] =?UTF-8?q?grafana:=20L=C3=B6sche=20influxdb-Monitoring=20?= =?UTF-8?q?Influxdb=20wird=20mit=20dieser=20Rolle=20nicht=20installiert.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- files/influxdb.monit | 9 --------- tasks/grafana.yml | 7 ++----- 2 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 files/influxdb.monit 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: