feat: send nsca conf

This commit is contained in:
2022-12-28 20:53:41 +01:00
parent f4bbf46243
commit e86db3c765
3 changed files with 14 additions and 2 deletions

View File

@@ -25,7 +25,19 @@
dest: "/etc/monitoring-tools/" dest: "/etc/monitoring-tools/"
version: master version: master
- name: Copy nsca-ng and send_nsca to /bin/ - name: Copy send_nsca to /bin/
copy:
src: send_nsca
dest: /bin/send_nsca
mode: 0755
- name: Copy send nsca config
template:
src: nsca_ng.cfg.js
dest: /etc/nsca_ng.cfg
mode: 0755
- name: Copy systemd monitoring
copy: copy:
src: pynagsystemd.py src: pynagsystemd.py
dest: /bin/pynagsystemd.py dest: /bin/pynagsystemd.py
@@ -44,7 +56,7 @@
- name: Template Remote Monitoring Config - name: Template Remote Monitoring Config
template: template:
src: monitoring.conf src: monitoring.conf.j2
dest: /etc/monitoring.conf dest: /etc/monitoring.conf
owner: root owner: root
mode: 644 mode: 644