Disk alerts that leave time to act
Notice rising usage and inode exhaustion before a write fails.
For a Linux file server, check both free bytes and free inodes on the filesystems that
receive writes. df -h and df -i answer different questions. A spool
that creates many small files can hit the inode limit even if gigabytes remain.
Alert on headroom and time
Estimate the largest write you expect during a busy day and give the warning several multiples of that headroom. Track daily free space over a week and add an alert for a sudden drop. A percentage alone is easy to misread across disks of different sizes.
Make the alert identify the mount, free bytes, free inodes, and when the trend started. Look for recent writes in the affected directory before deleting anything. If reported usage disagrees with a directory listing, consider deleted files still open in a running process and whether the listing crossed into a different filesystem.
Did this work on your setup, or did you spot a mistake? Send the editor a private note or leave a public note for the next reader.