1 # -----------------------------------------------------------------------------
4 # checking the latest collected values
5 # raise an alarm if the disk is low on
8 template: low_disk_space
11 warn: $avail * 100 / ($avail + $used) > 80
12 crit: $avail * 100 / ($avail + $used) > 90
14 # -----------------------------------------------------------------------------
17 # calculate the rate the disk fills
18 # use as base, the available space change
19 # during the last minute
21 template: disk_fill_rate_1m
23 lookup: max -1s at -1m unaligned
24 calc: ($this - $avail) / (1 * 60)
26 warn: $this * 2 * 86400 > $avail
27 crit: $this * 1 * 86400 > $avail
29 # calculate the rate the disk fills
30 # use as base, the available space change
31 # during the last hour
32 template: disk_fill_rate_59m
34 lookup: max -1s at -59m unaligned
36 calc: ($this - $avail) / (59 * 60)
37 warn: $this * 2 * 86400 > $avail
38 crit: $this * 1 * 86400 > $avail
40 # -----------------------------------------------------------------------------
43 # raise an alarm if the disk is congested
44 # by calculating the average disk utilization
47 template: disk_congested
49 lookup: average -1m every 1m unaligned
55 # raise an alarm if the disk backlog
56 # is above 1000ms (1s) per second
58 # (i.e. the disk cannot catch up)
60 template: disk_not_catching_up
62 lookup: average -1m every 1m unaligned