Tiny one-file health check for Linux servers. Prints CPU core status, memory usage, and the most filled disk mount in four concise lines.
MiniCheck is a minimal POSIX /bin/sh script that collects just the essentials:
- Server: hostname
- CPU: total cores and a simple status by recent load
- Memory: total, used% (based on
MemAvailable), available - Disk: mount with the highest usage (virtual/temporary FS excluded), with used%/free% and sizes
No external dependencies beyond common base tools (uptime, nproc or sysctl, free, df, awk).
mini_check.sh— see also the packaged copy below.
chmod +x mini_check.sh
./mini_check.shServer: localhost
CPU: Cores=40 -> OK(여유)
Mem: Total=773378MiB, Used≈2.3% (Avail=755927MiB) -> OK(여유)
Disk: Mount=/app, Used=9% (17G/200G), Free=91% (184G) -> OK(여유)
Interpretation
- CPU: compares 1‑minute load with core count (OK/Warning/Critical).
- Mem: uses
MemAvailableto reflect cache/buffer reclaimable memory.- Disk: reports the highest‑usage real mount; excludes tmpfs/overlay/snap/docker paths.
- If you created the script on Windows and see
$'\r' command not found, convert line endings to LF:sed -i 's/\r$//' mini_check.sh
This project is licensed under the MIT License.
See the LICENSE file for details.