DOCUMENTATION / V1.0.0 LTS
System Monitoring
A practical guide to the commands that tell you whether the kernel is healthy, what it is doing, and where to look next.
Audience: operators who want a fast answer to "is the system OK?" without reading implementation details.
When to Use This Page
Use this page when you want to:
- check overall kernel health
- inspect runtime counters
- verify paging, logs, and boot state
- understand whether a warning is cosmetic or operational
Fast Decision Guide
| Question | Start Here | Follow Up |
|---|---|---|
| "Did the kernel boot correctly?" | bootlog |
status, then health |
| "Is the system healthy right now?" | health |
health --verbose or diagnose |
| "Is something misbehaving?" | diagnose |
diagnose --verbose |
| "Are network sockets and interfaces active?" | netstat or netstat -a |
cat /proc/net/dev or
cat /proc/net/tcp |
| "Are storage quotas being exceeded?" | quota or repquota |
cat /proc/quota |
| "Are filesystem structures consistent or damaged?" | fsck /dev/sda |
fsck /dev/sda -v or fsck --json |
| "Is audio output and mixer configured?" | mixer |
playwav --test or sound status --json |
| "Do I need periodic real-time monitoring?" | watch 2 status |
watch 1 netstat |
| "Do I need structured output?" | status --json or health --json |
diagnose --json |
| "Which machine am I looking at?" | hostname or chostname |
cat /etc/hostname |
| "What are the active environment settings?" | env |
export |
| "What was the exit status of the last command?" | echo $? |
status |
| "Is power mode safe?" | power status |
power sim or power real |
Core Commands
status
Use status for a compact runtime snapshot.
status
status --jsonTypical information:
- current tick count
- periodic task counters
- soak or background activity
- page-fault summary
- console backend state
health
Use health when you want a yes/no style summary with a
short explanation.
health
health --verbose
health --json
health --json --reasonsThis is the best first command when you suspect the system is not in a good state.
diagnose
Use diagnose when you need the most complete
operator-facing report.
diagnose
diagnose --verbose
diagnose --jsonIt combines boot, paging, memory, CPU, keyboard, and background task signals into one view.
netstat and Network
Telemetry
Inspect active network sockets (TCP, UDP, RAW) and network adapter statistics:
# Display listening and connected sockets
netstat -a
# Show only TCP or UDP sockets
netstat -t
netstat -u
# Show interface packet and error statistics
netstat -iOr query the VFS directly via pseudo-files:
cat /proc/net/tcp
cat /proc/net/udp
cat /proc/net/devquota and
repquota
Audit disk space and inode consumption per user:
# Check current user's quota and grace periods
quota
# Generate system-wide quota accounting report
repquota -aOr inspect the raw kernel quota table:
cat /proc/quota
cat /sys/fs/quota/limitswatch
Execute any monitoring command on a periodic interval with auto-refresh:
# Refresh system status every 2 seconds
watch 2 status
# Monitor network connections every second
watch 1 netstat -a
# Monitor disk quota consumption
watch 5 repquota -abootlog
Use bootlog to confirm the boot path and detect
early-stage failures.
bootlog
bootlog --jsonThis is the fastest way to confirm that the kernel made it through the expected boot stages.
Reading Signals Correctly
health says
warn
A warning does not always mean failure. It can indicate:
- a paging self-test failure
- a soak test with allocation/free errors
- a console backend issue
- a page-fault pattern worth investigating
Start with health --verbose, then use
diagnose if you need more detail.
status looks
fine but behavior is odd
If counters look normal but the shell still feels wrong, check:
logsoutputsbootlogdiagnose --verbose
Those commands often reveal the operational detail missing from a single compact status line.
diagnose shows a
keyboard warning
A keyboard warning usually means the system is alive but input mapping or firmware behavior is unusual. It is often actionable, but not necessarily fatal.
Recommended Workflows
1. Quick health check
status
healthUse this when you just want a quick answer.
2. Network and Socket Audit
netstat -a
cat /proc/net/devInspect active transport endpoints and ensure network packet counters are incrementing without drop or error spikes.
3. Multi-User Storage & Quota Inspection
repquota -a
cat /proc/quotaAudit storage usage across all UIDs and verify whether soft or hard limits are nearing exhaustion.
4. Deeper investigation
health --verbose
diagnose --verboseUse this when you want the reasoning behind a warning.
5. Regression or demo verification
bootlog
status
health
power statusUse this before demos, screenshots, or scripted tests.
Related Commands at a Glance
cpufor processor identitymemory/freefor heap and physical memory usagepaging/vmstatfor virtual memory and page table statenetstatfor active TCP/UDP socket states and statisticsquota/repquotafor disk space and inode enforcementwatchfor continuous real-time periodic command executiontasks/ps/topfor running processes and periodic task countersiostatfor block device read/write throughputpcilistfor PCI hardware bus enumerationlogs/dmesgfor background log flow and kernel message ring bufferoutputsfor console backendspower statusfor power mode safety