summaryrefslogtreecommitdiffstats
path: root/health
diff options
context:
space:
mode:
authorVlad Movchan <vladislav.movchan@gmail.com>2018-10-16 15:31:38 +0300
committerCosta Tsaousis <costa@tsaousis.gr>2018-10-16 15:31:38 +0300
commit545d07eb78222a80124e9187e88921013ee403ea (patch)
tree3d4ac9d8a631afa627e06db9a3f1093fc6443853 /health
parent6887691fa2ab224241b50729c29c0316bff9ffad (diff)
Account "Laundry" pages as a separate RAM dimension on FreeBSD. (#4390)
Laundry pages are dirty pages queued for laundering. "Laundry" page type was introduces in FreeBSD CURRENT about two years ago and later this was backported to FreeBSD 11 branch.
Diffstat (limited to 'health')
-rw-r--r--health/health.d/ram.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/health/health.d/ram.conf b/health/health.d/ram.conf
index 65f7c9c654..d5a6396b60 100644
--- a/health/health.d/ram.conf
+++ b/health/health.d/ram.conf
@@ -41,7 +41,7 @@ alarm: ram_in_use
on: system.ram
os: freebsd
hosts: *
- calc: ($active + $wired + $buffers - $used_ram_to_ignore) * 100 / ($active + $wired + $buffers - $used_ram_to_ignore + $cache + $free + $inactive)
+ calc: ($active + $wired + $laundry + $buffers - $used_ram_to_ignore) * 100 / ($active + $wired + $laundry + $buffers - $used_ram_to_ignore + $cache + $free + $inactive)
units: %
every: 10s
warn: $this > (($status >= $WARNING) ? (80) : (90))
@@ -54,7 +54,7 @@ delay: down 15m multiplier 1.5 max 1h
on: system.ram
os: freebsd
hosts: *
- calc: ($free + $inactive + $used_ram_to_ignore) * 100 / ($free + $active + $inactive + $wired + $cache + $buffers)
+ calc: ($free + $inactive + $used_ram_to_ignore) * 100 / ($free + $active + $inactive + $wired + $cache + $laundry + $buffers)
units: %
every: 10s
warn: $this < (($status >= $WARNING) ? ( 5) : (10))