+# -----------------------------------------------------------------------------
+# make sure we collect values for each disk
+
+# for mount points
+template: disk_space_last_collected_secs
+ on: disk.space
+ calc: $now - $last_collected_t
+ every: 10s
+ warn: $this > ( 5 * $update_every)
+ crit: $this > (60 * $update_every)
+ units: seconds ago
+ info: number of seconds since the last successful data collection of the mount point
+ to: sysadmin
+
+# for block devices
+template: disk_last_collected_secs
+ on: disk.io
+ calc: $now - $last_collected_t
+ every: 10s
+ warn: $this > ( 5 * $update_every)
+ crit: $this > (60 * $update_every)
+ units: seconds ago
+ info: number of seconds since the last successful data collection of the block device
+ to: sysadmin
+
+
# -----------------------------------------------------------------------------
# low disk space
info: current disk space usage
to: sysadmin
+template: disk_inode_usage
+ on: disk.inodes
+ calc: $used * 100 / ($avail + $used)
+ every: 1m
+ warn: $this > 80
+ crit: $this > 95
+ units: %
+ info: current disk inode usage
+ to: sysadmin
+
# -----------------------------------------------------------------------------
# disk fill rate
on: disk.backlog
lookup: average -10m unaligned
every: 1m
- green: 1000
- red: 2000
+ green: 2000
+ red: 5000
warn: $this > $green
crit: $this > $red
units: ms