From 1e1946d8e0f276cd57523056c2fd5fdc845946b7 Mon Sep 17 00:00:00 2001 From: Salt Date: Sun, 3 Oct 2021 22:25:07 -0500 Subject: [PATCH] Add memory checks to hosts --- playbooks/tasks/web/nagios.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/playbooks/tasks/web/nagios.yml b/playbooks/tasks/web/nagios.yml index 325e3ba..4dc51a1 100644 --- a/playbooks/tasks/web/nagios.yml +++ b/playbooks/tasks/web/nagios.yml @@ -28,10 +28,12 @@ command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_cpu_stats -w 75 -c 90 - name: Disk Usage command: check_by_ssh!/usr/lib/nagios/plugins/check_disk -M -u GB -X nfs -X tracefs -X cgroup -X tmpfs -X overlay -X shm -w 15% -c 10% -W 15% -K 10% -A -I '^/run/' -I '^udev$' -I '^/var/lib/kubelet/' - - name: Reboot Required - command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_reboot_required + - name: Memory Usage + command: check_by_ssh!/usr/lib/nagios/plugins/check_memory -w 20% -c 10% - name: Package Updates command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_apt_pending + - name: Reboot Required + command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_reboot_required - name: Unit atd.service command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_systemd_unit atd.service - name: Unit backup.service