fix: various monitoring related fixes

This commit is contained in:
2022-12-28 21:50:11 +01:00
parent ae61d9eee0
commit 5024ff7da0
4 changed files with 13 additions and 6 deletions

View File

@@ -1,2 +1,4 @@
--- ---
checks: checks:
nsca_server: 192.168.122.107
nsca_password: HISTORY_PURGED_SECRET

View File

@@ -60,3 +60,8 @@
dest: /etc/monitoring.conf dest: /etc/monitoring.conf
owner: root owner: root
mode: 644 mode: 644
- name: Add monitoring report cronjob
cron:
name: "monitoring"
job: "/etc/monitoring/monitoring-report.py -c /etc/monitoring.conf --nsca-bin /bin/send_nsca --nsca-config /etc/send_nsca.cfg"

View File

@@ -1,7 +1,7 @@
nobody disk /usr/lib/nagios/plugins/check_disk -w 10% -c 5% -p / nobody disk-remote /usr/lib/nagios/plugins/check_disk -w 10% -c 5% -p /
nobody load /usr/lib/nagios/plugins/check_load -w 5,3,2 -c 10,6,4 nobody load-remote /usr/lib/nagios/plugins/check_load -w 5,3,2 -c 10,6,4
nobody procs /usr/lib/nagios/plugins/check_procs nobody procs-remote /usr/lib/nagios/plugins/check_procs
nobody systemd /etc/monitoring-tools/pynagsystemd.py nobody systemd /etc/monitoring-tools/pynagsystemd.py
{% if checks %} {% if checks %}
{% for entry in checks %} {% for entry in checks %}

View File

@@ -1,5 +1,5 @@
identity = {{ nsca_identity }} identity = {{ group_names[0] }}
password = {{ nsca_password }} password = {{ nsca_password }}
server = {{ nsca_server }} server = {{ nsca_server }}
port = {{ nsca_server_port }} port = 5668
tls_ciphers = "PSK-AES256-CBC-SHA" tls_ciphers = "PSK-AES256-CBC-SHA"