Get a health check of your Raspberry Pi with this Bash script. It displays hardware model, temperature, throttling status, uptime, load averages, memory usage, disk usage, failed services, and last boot time.
Run manually and/or every time you log in.
curl -o ~/picheck.sh https://raw.githubusercontent.com/tagawa/pi-health-check/main/picheck.sh && chmod +x ~/picheck.shTo also run it automatically on login (optional):
echo -e "\n# Run health check on login\n~/picheck.sh" >> ~/.bashrc- Copy or download the
picheck.shscript to your Pi's home directory. - Make it executable:
chmod +x ~/picheck.sh - Run it manually:
~/picheck.sh
To make it run every time you log in, add the following lines to your ~/.bashrc file:
# Run health check on login
~/picheck.sh
echo "Run health check manually with ~/picheck.sh"=== Pi Health Check ===
Model: Raspberry Pi 4 Model B Rev 1.5
Hostname: birdcam
Temperature: 55.0'C
Throttling: WARNING: 0xe0000
• Freq capped occurred since boot
• Throttled occurred since boot
• Soft temp limit occurred since boot
Uptime: up 17 weeks, 1 day, 3 hours, 53 minutes
Load avg: 0.55 0.65 0.75 (1min, 5min, 15min)
Memory: 442Mi / 7.6Gi
Swap: 0B / 2.0Gi
Disk: 7.8G / 59G (14%)
SD errors: None
Top CPU (avg):
gst-launch-1.0 (45.8%)
mediamtx (5.8%)
kworker/u21:0-b (0.5%)
Top CPU (now):
gst-launch-1.0 (33.3%)
mediamtx (2.0%)
kworker/0:1-events (2.0%)
IP address: 192.168.1.120
WiFi speed: 72.2 MBit/s
WiFi signal: -59 dBm
Internet: Connected
Open ports:
22
1935
8554
8888
8889
Failed services: None
Last reboot: 2026-07-17 15:48