From 46a567c46ac48b6eb564ebe180279a94b0b4ed00 Mon Sep 17 00:00:00 2001 From: Salt Date: Sat, 29 Jan 2022 08:39:53 -0600 Subject: [PATCH] Make memory checks a lot tighter Alright look, I design my systems with 10% overhead, not 20% --- playbooks/prod_web.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/playbooks/prod_web.yml b/playbooks/prod_web.yml index 40f21f7..48e482d 100755 --- a/playbooks/prod_web.yml +++ b/playbooks/prod_web.yml @@ -208,7 +208,7 @@ - name: Last Ansible Play command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_file_age /var/lib/ansible-last-run -w 176400 -c 216000 - name: Memory Usage - command: check_by_ssh!/usr/lib/nagios/plugins/check_memory -w 20% -c 10% + command: check_by_ssh!/usr/lib/nagios/plugins/check_memory -w 10% -c 5% hostgroup: "ansible,!tag-prov-zfs" - name: Ping Self over DNS command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_ping_by_hostname @@ -244,7 +244,7 @@ command: check_by_ssh!/usr/bin/sudo /usr/local/bin/monitoring-scripts/check_docker --no-ok --cpu 85:90 hostgroup: tag-nagios-checkdocker - name: Docker Memory Usage - command: check_by_ssh!/usr/bin/sudo /usr/local/bin/monitoring-scripts/check_docker --no-ok --memory 85:90:% + command: check_by_ssh!/usr/bin/sudo /usr/local/bin/monitoring-scripts/check_docker --no-ok --memory 90:95:% hostgroup: tag-nagios-checkdocker # Privileged checks # Required because check_disk may attempt to get the free space of