node: eu-central · ubuntu lts

System & systemd Diagnostics

Quick reference for service triage, journald filtering, CPU and memory bottlenecks, boot timing, and routine host maintenance.

Service Lifecycle & Failures

Inspect degraded units, reload unit files, and restart daemons cleanly.

systemd services
List failed units & overall state
systemctl --failed && systemctl is-system-running
Full unit status without pager truncation
systemctl status nginx.service -l --no-pager
Reload modified unit definitions & restart service
systemctl daemon-reload && systemctl restart app.service

Journald Log Triage

Follow unit logs, filter by severity, and keep journal disk usage bounded.

systemd logs
Tail live unit output (last 100 lines)
journalctl -u nginx.service -n 100 -f
Errors and critical alerts in the last 2 hours
journalctl -p err..emerg --since "2 hours ago" --no-pager
Check journal footprint and vacuum older logs
journalctl --disk-usage && journalctl --vacuum-time=7d

CPU & Process Tree

Spot runaway processes, parent-child relationships, and open handles.

cpu processes
Top 15 CPU consumers
ps aux --sort=-%cpu | head -n 16
Process hierarchy with PIDs and arguments
ps -ef --forest
Per-CPU utilization and active threads for PID
mpstat -P ALL 1 3 && ps -Lp <PID> -o pid,tid,%cpu,psr,comm

Memory & OOM Diagnostics

Verify real available RAM, top RSS consumers, and kernel OOM kills.

memory oom
Human-readable RAM, buffers, and swap
free -h && vmstat -s | head -n 10
Top 15 processes by resident memory
ps aux --sort=-%mem | head -n 16
Search kernel ring buffer for OOM killer events
dmesg -T | grep -iE "oom|killed process|out of memory"

Boot Timing & Systemd Timers

Audit slow boot stages, scheduled timers, and last reboot timestamp.

boot timers
Slowest units during last boot
systemd-analyze && systemd-analyze blame | head -n 15
List all timers with next and last trigger
systemctl list-timers --all --no-pager
Uptime and previous boot history
uptime -p && last -x -n 8 reboot shutdown

Sessions, SSH & Auth Audit

Verify active logins, effective sshd config, and recent failed attempts.

ssh auth
Active users and recent login IPs
w && last -n 15 -i
Inspect effective sshd security directives
sshd -T | grep -iE "port|permitrootlogin|passwordauthentication|pubkey"
Recent SSH authentication failures
journalctl -u ssh --since "24 hours ago" | grep -iE "failed|invalid" | tail -n 20

Kernel Parameters & Limits

Check live sysctl values and per-process file descriptor limits.

kernel sysctl
Inspect TCP backlog, conntrack, and swappiness
sysctl net.core.somaxconn net.ipv4.ip_local_port_range vm.swappiness
Apply /etc/sysctl.d/*.conf without reboot
sysctl --system
Live resource limits for a running PID
cat /proc/<PID>/limits

APT & Patch State

Review pending updates, package versions, and reboot requirements.

apt packages
Refresh index and show upgradable packages
apt update && apt list --upgradable
Check installed vs candidate package version
apt-cache policy nginx
Check if kernel or library update requires reboot
[ -f /var/run/reboot-required ] && cat /var/run/reboot-required || echo "No reboot required"

No matching command groups found on this page.