fix(monitoring): distinguish OPNsense Packetloss from Offline and inhibit duplicate gateway alerts
This commit is contained in:
1 parent
e623faff2b
commit
044c992edd
6 files changed
+45
-15
No files matched your search
@@ -13,6 +13,16 @@
|
||||
register: compose_up
|
||||
changed_when: "'Started' in compose_up.stderr or 'Created' in compose_up.stderr or 'Recreated' in compose_up.stderr or 'Pulled' in compose_up.stderr"
|
||||
|
||||
- name: Пересоздать Alertmanager при обновлении конфигурации
|
||||
ansible.builtin.command: docker compose -f {{ monitoring_dir }}/compose.yaml up -d --force-recreate --no-deps alertmanager
|
||||
when: alertmanager_config is defined and alertmanager_config is changed
|
||||
changed_when: true
|
||||
|
||||
- name: Пересоздать alertmanager-ntfy при обновлении конфигурации
|
||||
ansible.builtin.command: docker compose -f {{ monitoring_dir }}/compose.yaml up -d --force-recreate --no-deps alertmanager-ntfy
|
||||
when: alertmanager_ntfy_config is defined and alertmanager_ntfy_config is changed
|
||||
changed_when: true
|
||||
|
||||
- name: Пересоздать Xray Checker, чтобы подхватить метод проверки
|
||||
ansible.builtin.command: docker compose -f {{ monitoring_dir }}/compose.yaml up -d --force-recreate --no-deps xray-checker
|
||||
when: xray_checker_env is defined and xray_checker_env is changed
|
||||
|
||||
@@ -41,6 +41,7 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
register: alertmanager_config
|
||||
|
||||
- name: Установить конфигурацию alertmanager-ntfy
|
||||
ansible.builtin.template:
|
||||
@@ -49,6 +50,7 @@
|
||||
owner: root
|
||||
group: root
|
||||
mode: "0644"
|
||||
register: alertmanager_ntfy_config
|
||||
|
||||
- name: Конфиг vmagent на core-mon
|
||||
ansible.builtin.template:
|
||||
|
||||
Reference in new issue
Block a user