C
You're viewing a free preview. Sign in free to read every script.
Why this exists The shell version of this check parses df. A C version calls the same system call df uses, so there is no parsing and no dependency on an external program. It is also a clear introduction to how the…
Disk Space Monitor with statvfs and Warning/Critical Thresholds
Report filesystem usage the way df does, using statvfs, with warning and critical thresholds, human-readable sizes, several paths at once and Nagios-style exit codes for schedulers and monitoring systems.
Sign in free to read this script, along with the rest of the library.
Sign in free