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:

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 --json

Typical information:

health

Use health when you want a yes/no style summary with a short explanation.

health
health --verbose
health --json
health --json --reasons

This 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 --json

It 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 -i

Or query the VFS directly via pseudo-files:

cat /proc/net/tcp
cat /proc/net/udp
cat /proc/net/dev

quota 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 -a

Or inspect the raw kernel quota table:

cat /proc/quota
cat /sys/fs/quota/limits

watch

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 -a

bootlog

Use bootlog to confirm the boot path and detect early-stage failures.

bootlog
bootlog --json

This 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:

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:

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.

1. Quick health check

status
health

Use this when you just want a quick answer.

2. Network and Socket Audit

netstat -a
cat /proc/net/dev

Inspect 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/quota

Audit storage usage across all UIDs and verify whether soft or hard limits are nearing exhaustion.

4. Deeper investigation

health --verbose
diagnose --verbose

Use this when you want the reasoning behind a warning.

5. Regression or demo verification

bootlog
status
health
power status

Use this before demos, screenshots, or scripted tests.

See Also