Nagios
check_disk
Alert when free space on a mount point drops below warning or critical thresholds.
check-disk.yml
# check_disk is bundled with the standard nagios-plugins package.
# Define the command in commands.cfg:
define command {
command_name check_disk
command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
}
# Use in a service definition:
define service {
use generic-service
host_name web-01
service_description Disk Usage /
check_command check_disk!20%!10%!/
# Warn when less than 20% free, critical when less than 10% free
}