@cryptotaxi247 / netdata-1 / commits / 36e7ccc82

added used_swap alarm; fixes #1235

Costa Tsaousis (ktsaou) committed Nov 11, 2016 at 09:24 UTC 36e7ccc82a7cf97cc2deb71a42d2699dbc048328
1 file changed +12 -1
conf.d/health.d/swap.conf
+12 -1
@@ -12,7 +12,7 @@
12 info: the amount of memory swapped in the last 30 minutes, as a percentage of the system RAM
13 to: sysadmin
14
15 - alarm: used_swap_space
15 + alarm: ram_in_swap
16 on: system.swap
17 calc: $used * 100 / ( $system.ram.used + $system.ram.cached + $system.ram.free )
18 units: % of RAM
@@ -22,3 +22,14 @@
22 delay: up 0 down 15m multiplier 1.5 max 1h
23 info: the swap memory used, as a percentage of the system RAM
24 to: sysadmin
25 +
26 + alarm: used_swap
27 + on: system.swap
28 + calc: $used * 100 / ( $used + $free )
29 + units: %
30 + every: 10s
31 + warn: $this > (($status >= $WARNING) ? (60) : (80))
32 + crit: $this > (($status == $CRITICAL) ? (80) : (90))
33 + delay: up 0 down 15m multiplier 1.5 max 1h
34 + info: the percentage of swap memory used
35 + to: sysadmin