diff options
author | araemo <araemo@gmail.com> | 2020-05-14 04:10:00 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-14 11:10:00 +0300 |
commit | 7b034464c054adde69bf88b15a1ac50e81c21f8b (patch) | |
tree | a66ca3215e935e94f781c6d6b8e95740bf22668c /health/health.d/ram.conf | |
parent | f152ecf8ac5ba28df74567d4ad3b6033d36782d4 (diff) |
Account for zfs.arc_size.min, and correct calc (#8913)
Diffstat (limited to 'health/health.d/ram.conf')
-rw-r--r-- | health/health.d/ram.conf | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/health/health.d/ram.conf b/health/health.d/ram.conf index 15e8e84640..0a71dac846 100644 --- a/health/health.d/ram.conf +++ b/health/health.d/ram.conf @@ -5,7 +5,7 @@ on: system.ram os: linux freebsd hosts: * - calc: ($zfs.arc_size.arcsz = nan)?(0):($zfs.arc_size.arcsz) + calc: ($zfs.arc_size.arcsz = nan)?(0):($zfs.arc_size.arcsz - $zfs.arc_size.min) every: 10s 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) @@ -14,7 +14,7 @@ os: linux hosts: * # calc: $used * 100 / ($used + $cached + $free) - calc: ($used - $used_ram_to_ignore) * 100 / ($used - $used_ram_to_ignore + $cached + $free) + calc: ($used - $used_ram_to_ignore) * 100 / ($used + $cached + $free) units: % every: 10s warn: $this > (($status >= $WARNING) ? (80) : (90)) |