mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-09 18:18:32 +01:00
update: async service fixes & nsca server
This commit is contained in:
@@ -77,12 +77,12 @@ object Host "atlantislaptop" {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
object Host "kathi" {
|
object Host "kathilaptop" {
|
||||||
|
|
||||||
import "generic-host"
|
import "generic-host"
|
||||||
|
|
||||||
address = "localhost"
|
address = "localhost"
|
||||||
name = "kathi"
|
name = "kathilaptop"
|
||||||
vars.async = "true"
|
vars.async = "true"
|
||||||
vars.linux = "true"
|
vars.linux = "true"
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,21 @@
|
|||||||
dest: /bin/send_nsca
|
dest: /bin/send_nsca
|
||||||
mode: 0755
|
mode: 0755
|
||||||
|
|
||||||
|
- name: Create nsca server directory
|
||||||
|
file:
|
||||||
|
path: /etc/nsca-ng/
|
||||||
|
mode: 0750
|
||||||
|
owner: root
|
||||||
|
group: nagios
|
||||||
|
|
||||||
|
- name: Copy nsca server config
|
||||||
|
copy:
|
||||||
|
src: nsca_server.conf
|
||||||
|
dest: /etc/nsca-ng/nsca-ng.cfg
|
||||||
|
owner: root
|
||||||
|
group: nagios
|
||||||
|
mode: 0644
|
||||||
|
|
||||||
- name: Copy icinga configuration
|
- name: Copy icinga configuration
|
||||||
copy:
|
copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
@@ -59,6 +74,6 @@
|
|||||||
- 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
|
||||||
line: "include monitoring-tools/commands.d/signal-notify.conf"
|
line: '"include /etc/monitoring-tools/commands.d/signal-notify.conf"'
|
||||||
notify:
|
notify:
|
||||||
- restart icinga
|
- restart icinga
|
||||||
|
|||||||
Reference in New Issue
Block a user