update: async service fixes & nsca server

This commit is contained in:
2022-12-28 20:26:06 +01:00
parent a31e9ca293
commit 7870fa51b4
2 changed files with 18 additions and 3 deletions

View File

@@ -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"

View File

@@ -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