mirror of
https://github.com/FAUSheppy/no-secrets-athq-ansible
synced 2025-12-06 08:51:37 +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"
|
||||
|
||||
address = "localhost"
|
||||
name = "kathi"
|
||||
name = "kathilaptop"
|
||||
vars.async = "true"
|
||||
vars.linux = "true"
|
||||
|
||||
|
||||
@@ -41,6 +41,21 @@
|
||||
dest: /bin/send_nsca
|
||||
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
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
@@ -59,6 +74,6 @@
|
||||
- name: Signal command loaded from monitoring tools
|
||||
lineinfile:
|
||||
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:
|
||||
- restart icinga
|
||||
|
||||
Reference in New Issue
Block a user