master
conf 76 lines 2.57 KB
Raw
1 # you can disable an alarm notification by setting the 'to' line to: silent
2
3 alarm: ram_in_use
4 on: system.ram
5 class: Utilization
6 type: System
7 component: Memory
8 host labels: _os=linux
9 calc: $used * 100 / ($used + $cached + $free + $buffers)
10 units: %
11 every: 10s
12 warn: $this > (($status >= $WARNING) ? (80) : (90))
13 crit: $this > (($status == $CRITICAL) ? (90) : (98))
14 delay: down 15m multiplier 1.5 max 1h
15 summary: System memory utilization
16 info: System memory utilization
17 to: sysadmin
18
19 alarm: ram_available
20 on: mem.available
21 class: Utilization
22 type: System
23 component: Memory
24 host labels: _os=linux
25 calc: $avail * 100 / ($system.ram.used + $system.ram.cached + $system.ram.free + $system.ram.buffers)
26 units: %
27 every: 10s
28 warn: $this < (($status >= $WARNING) ? (15) : (10))
29 delay: down 15m multiplier 1.5 max 1h
30 summary: System available memory
31 info: Percentage of estimated amount of RAM available for userspace processes, without causing swapping
32 to: silent
33
34 alarm: oom_kill
35 on: mem.oom_kill
36 host labels: _os=linux
37 lookup: sum -30m unaligned
38 units: kills
39 every: 5m
40 warn: $this > 0
41 delay: down 10m
42 summary: System OOM kills
43 info: Number of out of memory kills in the last 30 minutes
44 to: silent
45
46 ## FreeBSD
47 alarm: ram_in_use
48 on: system.ram
49 class: Utilization
50 type: System
51 component: Memory
52 host labels: _os=freebsd
53 calc: ($active + $wired + $laundry + $buffers) * 100 / ($active + $wired + $laundry + $buffers + $cache + $free + $inactive)
54 units: %
55 every: 10s
56 warn: $this > (($status >= $WARNING) ? (80) : (90))
57 crit: $this > (($status == $CRITICAL) ? (90) : (98))
58 delay: down 15m multiplier 1.5 max 1h
59 summary: System memory utilization
60 info: System memory utilization
61 to: sysadmin
62
63 alarm: ram_available
64 on: mem.available
65 class: Utilization
66 type: System
67 component: Memory
68 host labels: _os=freebsd
69 calc: $avail * 100 / ($system.ram.free + $system.ram.active + $system.ram.inactive + $system.ram.wired + $system.ram.cache + $system.ram.laundry + $system.ram.buffers)
70 units: %
71 every: 10s
72 warn: $this < (($status >= $WARNING) ? (15) : (10))
73 delay: down 15m multiplier 1.5 max 1h
74 summary: System available memory
75 info: Percentage of estimated amount of RAM available for userspace processes, without causing swapping
76 to: silent