From 7afaff028764c7127aceee80336752d5db6486a4 Mon Sep 17 00:00:00 2001 From: pengln Date: Mon, 6 Dec 2021 17:13:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DCheck=20Filebeat=20Service=20?= =?UTF-8?q?Running=20Status=E5=91=BD=E4=BB=A4=E6=89=BE=E4=B8=8D=E5=88=B0?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- playbooks/roles/filebeat/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playbooks/roles/filebeat/tasks/main.yml b/playbooks/roles/filebeat/tasks/main.yml index d5fc76e..a766b51 100644 --- a/playbooks/roles/filebeat/tasks/main.yml +++ b/playbooks/roles/filebeat/tasks/main.yml @@ -126,7 +126,7 @@ when: filebeat_data_migration | default(false) and check_old_filebeat_data.stdout != '' - name: Check Filebeat Service Running Status - ansible.builtin.shell: "supervisorctl -c {{ filebeat_work_path }}/supervisor.yml status" + ansible.builtin.shell: "{{ python_bin_dir }}/supervisorctl -c {{ filebeat_work_path }}/supervisor.yml status filebeat_{{ instance_name }}_{{ log_type }}" register: filebeat_status changed_when: filebeat_status.rc != 0 failed_when: false