Account for zfs.arc_size.min, and correct calc (#8913)
araemo committed
May 14, 2020 at 04:10 UTC
7b034464c054adde69bf88b15a1ac50e81c21f8b
1 file changed
+2
-2
health/health.d/ram.conf
+2
-2
@@ -5,7 +5,7 @@
5
on: system.ram
6
os: linux freebsd
7
hosts: *
8
- calc: ($zfs.arc_size.arcsz = nan)?(0):($zfs.arc_size.arcsz)
8
+ calc: ($zfs.arc_size.arcsz = nan)?(0):($zfs.arc_size.arcsz - $zfs.arc_size.min)
9
every: 10s
10
info: the amount of memory that is reported as used, but it is actually capable for resizing itself based on the system needs (eg. ZFS ARC)
11
@@ -14,7 +14,7 @@
14
os: linux
15
hosts: *
16
# calc: $used * 100 / ($used + $cached + $free)
17
- calc: ($used - $used_ram_to_ignore) * 100 / ($used - $used_ram_to_ignore + $cached + $free)
17
+ calc: ($used - $used_ram_to_ignore) * 100 / ($used + $cached + $free)
18
units: %
19
every: 10s
20
warn: $this > (($status >= $WARNING) ? (80) : (90))