1 # -----------------------------------------------------------------------------
4 # checking the latest collected values
5 # raise an alarm if the disk is low on
8 template: disk_space_usage
10 calc: $used * 100 / ($avail + $used)
15 info: current disk space usage
19 # -----------------------------------------------------------------------------
22 # calculate the rate the disk fills
23 # use as base, the available space change
24 # during the last 30 minutes
26 # this is just a calculation - it has no alarm
27 # we will use it in the next template to find
30 template: disk_fill_rate
32 lookup: min -5m at -30m unaligned of avail
33 calc: ($this - $avail) / (($now - $after) / 60)
36 info: average rate the disk fills up (positive), or frees up (negative) space, for the last 30 minutes
39 # calculate the hours remaining
40 # if the disk continues to fill
43 template: out_of_disk_space
45 calc: $avail / ($disk_fill_rate * 60)
47 warn: $this > 0 and $this < 48
48 crit: $this > 0 and $this < 24
50 info: estimated time the disk will run out of space, if the system continues to add data with the rate of the last 30 minutes
54 # -----------------------------------------------------------------------------
57 # raise an alarm if the disk is congested
58 # by calculating the average disk utilization
59 # for the last 10 minutes
61 template: 10min_disk_utilization
63 lookup: average -10m unaligned
70 info: the percentage of time the disk was busy, during the last 10 minutes
74 # raise an alarm if the disk backlog
75 # is above 1000ms (1s) per second
77 # (i.e. the disk cannot catch up)
79 template: 10min_disk_backlog
81 lookup: average -10m unaligned
88 info: average of the kernel estimated disk backlog, for the last 10 minutes