From: Costa Tsaousis (ktsaou) Date: Sun, 28 Aug 2016 21:42:54 +0000 (+0300) Subject: more elastic swap checks X-Git-Tag: v1.4.0~99^2 X-Git-Url: https://arthur.barton.de/gitweb/?a=commitdiff_plain;h=f50f503e3657025c45ab7306e33bb6226fb2e4d4;p=netdata.git more elastic swap checks --- diff --git a/conf.d/health.d/swap.conf b/conf.d/health.d/swap.conf index 552dd310..1420565b 100644 --- a/conf.d/health.d/swap.conf +++ b/conf.d/health.d/swap.conf @@ -5,10 +5,10 @@ # we have to convert KB to MB by dividing $this (i.e. the result of the lookup) with 1024 calc: $this / 1024 * 100 / ( $system.ram.used + $system.ram.cached + $system.ram.free ) every: 1m - warn: $this > 1 - crit: $this > 10 + warn: $this > 10 + crit: $this > 20 units: % of RAM - info: the sum of all memory swapped out during the last 30 minutes, as a percentage of the available RAM + info: the amount of memory swapped in the last 30 minutes, as a percentage of the system RAM alarm: pcent_of_ram_in_swap on: system.swap @@ -17,4 +17,4 @@ warn: $this > 10 crit: $this > 50 units: % of RAM - info: the currently used swap space, as a percentage of the available RAM + info: the swap memory used, as a percentage of the system RAM diff --git a/web/index.html b/web/index.html index 162250b9..486bda4a 100644 --- a/web/index.html +++ b/web/index.html @@ -2504,6 +2504,7 @@ function alarmsUpdateModal() { } html += 'check every' + frequency_text(alarm.update_every) + '' + + 'execute' + alarm.exec + '' + 'source' + alarm.source + '' + '';