Revert "Don't check swap if not present"
This reverts commit 6edb3a7a68e4cc25b6f63bc6ad6d17a9f6dfbfb9.
diff --git a/linux/meta/sensu.yml b/linux/meta/sensu.yml
index c17771b..ad65970 100644
--- a/linux/meta/sensu.yml
+++ b/linux/meta/sensu.yml
@@ -1,4 +1,3 @@
-{%- from "linux/map.jinja" import storage with context %}
check:
local_linux_system_zombie_procs:
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_procs -w 2 -c 7 -s Z"
@@ -18,14 +17,12 @@
occurrences: 1
subscribers:
- local-linux-system
- {%- if storage.swap|length > 0 %}
local_linux_storage_swap_usage:
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_swap -a -w 50% -c 20%"
interval: 60
occurrences: 1
subscribers:
- local-linux-storage
- {%- endif %}
local_linux_storage_disk_usage:
command: "PATH=$PATH:/usr/lib64/nagios/plugins:/usr/lib/nagios/plugins check_disk -w 15% -c 5% -p / -p /var -p /usr -p /tmp -p /var/log"
interval: 60