System Monitoring
You can check the health and status of the server/device you are running on (Raspberry Pi/Docker) using standard Linux commands.
Available Commands
CPU & Processes
- •Memory:
free -h - •CPU Load:
top -b -n 1 | head -n 20(Batch mode, top 20 lines) - •Uptime:
uptime
Temperature (Raspberry Pi)
- •CPU Temp:
cat /sys/class/thermal/thermal_zone0/temp- •Note: Value is in millidegrees. Divide by 1000 to get Celsius (e.g., 45000 -> 45°C).
- •Alternative:
vcgencmd measure_temp(if available).
Storage
- •Disk Usage:
df -h(Human readable)
Network
- •IP Address:
hostname -I - •Connections:
netstat -tuln(if available)
Usage Tips
- •If the user asks "How are you doing?", check your resources!
- •If the user asks "Are you running out of space?", check
df -h. - •Report values in a human-friendly summary (e.g., "I'm using 200MB of RAM out of 4GB").