1 # -----------------------------------------------------------------------------
4 # checking the latest collected values
5 # raise an alarm if the disk is low on
8 template: disk_full_percent
10 calc: $used * 100 / ($avail + $used)
15 info: current disk space usage
18 # -----------------------------------------------------------------------------
21 # calculate the rate the disk fills
22 # use as base, the available space change
23 # during the last 30 minutes
25 # this is just a calculation - it has no alarm
26 # we will use it in the next template to find
29 template: disk_fill_rate
31 lookup: max -1s at -30m unaligned of avail
32 calc: ($this - $avail) / (($now - $after) / 60)
35 info: average rate the disk fills up (positive), or frees up (negative) space, for the last 30 minutes
38 # calculate the hours remaining
39 # if the disk continues to fill
42 template: disk_full_after_hours
44 calc: $avail / ($disk_fill_rate * 60)
46 warn: $this > 0 and $this < 48
47 crit: $this > 0 and $this < 24
49 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
52 # -----------------------------------------------------------------------------
55 # raise an alarm if the disk is congested
56 # by calculating the average disk utilization
57 # for the last 10 minutes
59 template: 10min_disk_utilization
61 lookup: average -10m unaligned
68 info: the percentage of time the disk was busy, during the last 10 minutes
71 # raise an alarm if the disk backlog
72 # is above 1000ms (1s) per second
74 # (i.e. the disk cannot catch up)
76 template: 10min_disk_backlog
78 lookup: average -10m unaligned
85 info: average of the kernel estimated disk backlog, for the last 10 minutes