A lightweight Python system monitoring script for Raspberry Pi — no external dependencies, pure Python stdlib.
- CPU – clock speed, usage (with progress bar), load average, core count
- Temperature – color-coded via
/sys/class/thermalorvcgencmd(green / yellow / red) - Memory – RAM usage with progress bar, buffers & cache
- Disk – all mounted partitions with fill level
- Users – active SSH sessions including source IP
- Network – all interfaces with IP addresses
Run directly on your Raspberry Pi without downloading first:
curl -fsSL https://raw.githubusercontent.com/andilar/SysInfo4Raspi/main/sysinfo.py | python3Or download and run locally:
# Download
curl -fsSL https://raw.githubusercontent.com/andilar/SysInfo4Raspi/main/sysinfo.py -o sysinfo.py
# Run
python3 sysinfo.pyOr clone the full repo:
git clone https://github.com/andilar/SysInfo4Raspi.git
cd SysInfo4Raspi
python3 sysinfo.py- Python 3.6+
- No external packages needed (no
pip installrequired) - Works on all Raspberry Pi models running Raspberry Pi OS / Raspbian
Thresholds for temperature, CPU, and RAM usage:
| Color | Meaning | CPU / RAM | Temperature |
|---|---|---|---|
| 🟢 Green | Normal | < 60% | < 60°C |
| 🟡 Yellow | Warning | 60–85% | 60–80°C |
| 🔴 Red | Critical | > 85% | > 80°C |
MIT – see LICENSE