alarm: disk_fill
on: disk_space._
lookup: min -5m unaligned of avail
calc: $this
warn: $this < 3600
crit: $this < 900
delay: down 5m multiplier 1.5 max 30m
hysteresis: 10%
exec: /usr/local/bin/agentctl alarm --name disk_fill --status "$status" --value "$this"
to: system-monitor

alarm: disk_capacity
on: system_monitor.disk_root
lookup: average -2m unaligned of used_pct
calc: $this
warn: $this >= 75 || $avail_gib < 100 || $inodes_pct >= 75
crit: $this >= 85 || $avail_gib < 50 || $inodes_pct >= 90
delay: down 5m multiplier 1.5 max 30m
hysteresis: 5%
exec: /usr/local/bin/agentctl alarm --name disk_capacity --status "$status" --value "$this"
to: system-monitor
