Showing 1 changed files with 5 additions and 0 deletions
+5
monitoring.d/common-tests
... ...
@@ -42,6 +42,11 @@ function autotest () {
42 42
     test -e $testfile && echo "it works" && rm -f $testfile
43 43
 }
44 44
 
45
+function swap () {
46
+    _turn 24 || return
47
+    awk '/^\//{if ($1 !~ "zram") { p=$4/$3*100; if (p > 10) printf("%s (%.1f%%)\n", $1, p)}}' /proc/swaps
48
+}
49
+
45 50
 function certificates () {
46 51
     _turn 24 || return
47 52
     for domain in /etc/letsencrypt/live/*; do