mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-10 09:28:31 +01:00
fix: monitoring tools is loaded by icinga
This commit is contained in:
@@ -14,6 +14,7 @@
|
|||||||
repo: https://github.com/FAUSheppy/monitoring-tools
|
repo: https://github.com/FAUSheppy/monitoring-tools
|
||||||
dest: "/etc/monitoring-tools/"
|
dest: "/etc/monitoring-tools/"
|
||||||
version: master
|
version: master
|
||||||
|
notify: restart icinga
|
||||||
|
|
||||||
- name: Set monitoring tools permissions
|
- name: Set monitoring tools permissions
|
||||||
file:
|
file:
|
||||||
@@ -92,10 +93,19 @@
|
|||||||
- name: Change icinga log level
|
- name: Change icinga log level
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/icinga2/features-enabled/mainlog.conf
|
path: /etc/icinga2/features-enabled/mainlog.conf
|
||||||
regex: '^ severity = ".*"$'
|
|
||||||
line: ' severity = "warning"'
|
line: ' severity = "warning"'
|
||||||
notify: restart icinga
|
notify: restart icinga
|
||||||
|
|
||||||
|
- name: Add signal vars
|
||||||
|
lineinfile:
|
||||||
|
path: /etc/icinga2/constants.conf
|
||||||
|
line: "{{ item }}"
|
||||||
|
with_items:
|
||||||
|
- 'const signal_gateway_host = "192.168.122.110"'
|
||||||
|
- 'const signal_gateway_port = "5004"'
|
||||||
|
- 'const signal_gateway_proto = "http"'
|
||||||
|
notify: restart icinga
|
||||||
|
|
||||||
- name: Signal command loaded from monitoring tools
|
- name: Signal command loaded from monitoring tools
|
||||||
lineinfile:
|
lineinfile:
|
||||||
path: /etc/icinga2/icinga2.conf
|
path: /etc/icinga2/icinga2.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user