fix warning condition for mem.available (#5353)
* fix warning condition for mem.available * Fix system.ram ram_available as well
Chris Akritidis committed
Feb 8, 2019 at 12:24 UTC
f49ca59b246e6ea3c06a53fec93a7c6759619138
1 file changed
+2
-2
health/health.d/ram.conf
+2
-2
@@ -30,7 +30,7 @@
30
calc: ($avail + $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) ? ( 5) : (10))
33
+ warn: $this < (($status >= $WARNING) ? (15) : (10))
34
crit: $this < (($status == $CRITICAL) ? (10) : ( 5))
35
delay: down 15m multiplier 1.5 max 1h
36
info: estimated amount of RAM available for userspace processes, without causing swapping
@@ -57,7 +57,7 @@ delay: down 15m multiplier 1.5 max 1h
57
calc: ($free + $inactive + $used_ram_to_ignore) * 100 / ($free + $active + $inactive + $wired + $cache + $laundry + $buffers)
58
units: %
59
every: 10s
60
- warn: $this < (($status >= $WARNING) ? ( 5) : (10))
60
+ warn: $this < (($status >= $WARNING) ? (15) : (10))
61
crit: $this < (($status == $CRITICAL) ? (10) : ( 5))
62
delay: down 15m multiplier 1.5 max 1h
63
info: estimated amount of RAM available for userspace processes, without causing swapping