Skip to content

WoongyuChoi/MiniCheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

MiniCheck

Shell Platform License GitHub release (latest by date)

Tiny one-file health check for Linux servers. Prints CPU core status, memory usage, and the most filled disk mount in four concise lines.

Overview

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).

Download

Usage

chmod +x mini_check.sh
./mini_check.sh

Example Output

Server: 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 MemAvailable to reflect cache/buffer reclaimable memory.
  • Disk: reports the highest‑usage real mount; excludes tmpfs/overlay/snap/docker paths.

Notes

  • 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

License

This project is licensed under the MIT License.
See the LICENSE file for details.

About

Tiny POSIX sh script that prints a four-line Linux health summary (Server, CPU, Memory, Disk).

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages