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) < 95
15 # -----------------------------------------------------------------------------
18 # calculate the rate the disk fills
19 # use as base, the available space change
20 # during the last 10 minutes
22 # this is just a calculation - it has no alarm
23 # we will use it in the next template to find
26 template: disk_fill_rate
28 lookup: max -1s at -10m unaligned of avail
29 calc: ($this - $avail) / (10 * 60)
33 # calculate the hours remaininig
34 # if the disk continues to fill
37 template: disk_will_fill_in_hours
39 calc: $avail / $disk_fill_rate / 3600
41 warn: $this > 0 and $this < 48
42 crit: $this > 0 and $this < 24
45 # -----------------------------------------------------------------------------
48 # raise an alarm if the disk is congested
49 # by calculating the average disk utilization
52 template: disk_congested
54 lookup: average -1m every 1m unaligned
60 # raise an alarm if the disk backlog
61 # is above 1000ms (1s) per second
63 # (i.e. the disk cannot catch up)
65 template: disk_not_catching_up
67 lookup: average -1m every 1m unaligned