added alarms for used ram, swap I/O and swap used; #810
Costa Tsaousis (ktsaou) committed
Aug 27, 2016 at 11:37 UTC
28ec4368e35108e9e2c13737f1bc18a84be4ecbb
3 files changed
+25
conf.d/Makefile.am
+2
@@ -49,6 +49,8 @@ dist_healthconfig_DATA = \
49
health.d/named.conf \
50
health.d/net.conf \
51
health.d/nginx.conf \
52
+ health.d/ram.conf \
53
health.d/redis.conf \
54
+ health.d/swap.conf \
55
health.d/squid.conf \
56
$(NULL)
conf.d/health.d/ram.conf
new
+7
@@ -0,0 +1,7 @@
1
+
2
+ alarm: used_ram_pcent
3
+ on: system.ram
4
+ calc: $used * 100 / ($used + $cached + $free)
5
+ every: 10s
6
+ warn: $this > 80
7
+ crit: $this > 90
conf.d/health.d/swap.conf
new
+16
@@ -0,0 +1,16 @@
1
+
2
+ alarm: 30min_pcent_of_ram_swapped_out
3
+ on: system.swapio
4
+ lookup: sum -30m unaligned of out
5
+ # we have to convert KB to MB by dividing $this (i.e. the result of the lookup) with 1024
6
+ calc: $this / 1024 * 100 / ( $system.ram.used + $system.ram.cached + $system.ram.free )
7
+ every: 1m
8
+ warn: $this > 1
9
+ crit: $this > 10
10
+
11
+ alarm: pcent_of_ram_in_swap
12
+ on: system.swap
13
+ calc: $used * 100 / ( $system.ram.used + $system.ram.cached + $system.ram.free )
14
+ every: 10s
15
+ warn: $this > 10
16
+ crit: $this > 50