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)
16 # -----------------------------------------------------------------------------
19 # calculate the rate the disk fills
20 # use as base, the available space change
21 # during the last 10 minutes
23 # this is just a calculation - it has no alarm
24 # we will use it in the next template to find
27 template: disk_fill_rate
29 lookup: max -1s at -10m unaligned of avail
30 calc: ($this - $avail) / (10 * 60)
34 # calculate the hours remaininig
35 # if the disk continues to fill
38 template: disk_full_after_hours
40 calc: $avail / $disk_fill_rate / 3600
42 warn: $this > 0 and $this < 48
43 crit: $this > 0 and $this < 24
46 # -----------------------------------------------------------------------------
49 # raise an alarm if the disk is congested
50 # by calculating the average disk utilization
51 # for the last 2 minutes
53 template: 5min_disk_utilization
55 lookup: average -5m unaligned
63 # raise an alarm if the disk backlog
64 # is above 1000ms (1s) per second
66 # (i.e. the disk cannot catch up)
68 template: 5min_disk_backlog
70 lookup: average -5m every 1m unaligned