master
conf 64 lines 2.19 KB
Raw
1 # you can disable an alarm notification by setting the 'to' line to: silent
2
3 alarm: used_ram_to_ignore
4 on: system.ram
5 os: linux freebsd
6 hosts: *
7 calc: ($zfs.arc_size.arcsz = nan)?(0):($zfs.arc_size.arcsz)
8 every: 10s
9 info: the amount of memory that is reported as used, but it is actually capable for resizing itself based on the system needs (eg. ZFS ARC)
10
11 alarm: ram_in_use
12 on: system.ram
13 os: linux
14 hosts: *
15 # calc: $used * 100 / ($used + $cached + $free)
16 calc: ($used - $used_ram_to_ignore) * 100 / ($used - $used_ram_to_ignore + $cached + $free)
17 units: %
18 every: 1s
19 warn: $this > 1
20 crit: $this > 5
21 delay: down 15m multiplier 1.5 max 1h
22 info: system RAM used
23 to: sysadmin #alarms
24 repeat: warning 30s critical 60s
25
26 alarm: ram_available
27 on: mem.available
28 os: linux
29 hosts: *
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) ? (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
37 to: sysadmin #alarms
38
39 ## FreeBSD
40 alarm: ram_in_use
41 on: system.ram
42 os: freebsd
43 hosts: *
44 calc: ($active + $wired + $laundry + $buffers - $used_ram_to_ignore) * 100 / ($active + $wired + $laundry + $buffers - $used_ram_to_ignore + $cache + $free + $inactive)
45 units: %
46 every: 10s
47 warn: $this > (($status >= $WARNING) ? (80) : (90))
48 crit: $this > (($status == $CRITICAL) ? (90) : (98))
49 delay: down 15m multiplier 1.5 max 1h
50 info: system RAM usage
51 to: sysadmin #alarms
52
53 alarm: ram_available
54 on: system.ram
55 os: freebsd
56 hosts: *
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) ? (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
64 to: sysadmin #alarms