From 1952f72c89a06790d73becf42f411c1ae5c947fe Mon Sep 17 00:00:00 2001 From: Salt Date: Thu, 25 Nov 2021 16:41:17 -0600 Subject: [PATCH] Add a check for the last ansible run on a given machine --- playbooks/tasks/web/nagios.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/playbooks/tasks/web/nagios.yml b/playbooks/tasks/web/nagios.yml index 5049320..0996cf1 100644 --- a/playbooks/tasks/web/nagios.yml +++ b/playbooks/tasks/web/nagios.yml @@ -37,6 +37,8 @@ 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: DNS Resolution command: check_by_ssh!/usr/lib/nagios/plugins/check_etc_resolv + - name: Last Ansible Play + command: check_by_ssh!/usr/local/bin/monitoring-scripts/check_file_age /var/lib/ansible-last-run -w 90000 -c 100000 - name: Memory Usage command: check_by_ssh!/usr/lib/nagios/plugins/check_memory -w 20% -c 10% - name: Package Updates