748 B
748 B
check-remote-disk-usage
Run df on one or more remote hosts over SSH.
Problem
Disk pressure on servers is easier to spot when the same paths are checked
across many hosts with identical formatting. This script loops hosts and runs
df -h on paths you specify.
Requirements
bashsshaccess to each target host (keys or agent configured outside this script)
Usage
./check-remote-disk-usage.sh -p /,/opt/data host-a host-b
-p is required. Separate multiple paths with commas (no spaces).
Limits
- Runs
df -honly; no alerting or thresholds. - Uses your local
sshconfiguration for authentication. - No parallel execution; hosts are queried sequentially.
License
MIT — see LICENSE.