mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 20:38:32 +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
|
||||
dest: "/etc/monitoring-tools/"
|
||||
version: master
|
||||
notify: restart icinga
|
||||
|
||||
- name: Set monitoring tools permissions
|
||||
file:
|
||||
@@ -92,10 +93,19 @@
|
||||
- name: Change icinga log level
|
||||
lineinfile:
|
||||
path: /etc/icinga2/features-enabled/mainlog.conf
|
||||
regex: '^ severity = ".*"$'
|
||||
line: ' severity = "warning"'
|
||||
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
|
||||
lineinfile:
|
||||
path: /etc/icinga2/icinga2.conf
|
||||
|
||||
Reference in New Issue
Block a user