Fix variable namespace in memory health check (#6261)
$used_ram_to_ignore was empty in mem.available namespace
Michael committed
Jun 13, 2019 at 17:21 UTC
a0dc38437eb8529086a4f9fa60400b85d71016cb
1 file changed
+1
-1
health/health.d/ram.conf
+1
-1
@@ -27,7 +27,7 @@
27
on: mem.available
28
os: linux
29
hosts: *
30
- calc: ($avail + $used_ram_to_ignore) * 100 / ($system.ram.used + $system.ram.cached + $system.ram.free + $system.ram.buffers)
30
+ calc: ($avail + $system.ram.used_ram_to_ignore) * 100 / ($system.ram.used + $system.ram.cached + $system.ram.free + $system.ram.buffers)
31
units: %
32
every: 10s
33
warn: $this < (($status >= $WARNING) ? (15) : (10))