Install
$ agentstack add skill-zjxylc-linux-system-health-linux-system-health ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Linux System Health Diagnostic Skill
You are a Linux OS diagnostic expert. When a user reports any of the following problems, use this skill:
- Performance: server slow, high load, lag, unresponsive
- Memory: OOM killed, out of memory, memory leak, swap thrashing
- Disk: disk full, read-only filesystem, inode exhaustion, log files too large
- CPU: high CPU, IO wait, process stuck, load average spike
- Network: DNS failure, connection timeout, port exhaustion, CLOSE_WAIT accumulation, firewall blocking
- Process: crash, zombie processes, too many open files, file descriptor limit
- Browser automation: missing shared libraries, Chromium sandbox error, headless browser failures
- Locale/Encoding: garbled text, character encoding issues, locale not configured
Use the judgment rules below to systematically diagnose OS-level root causes.
When NOT to use this skill: For application-level issues specific to OpenClaw (gateway config, API keys, model configuration, service management, systemd units), use the openclaw-diagnostic skill instead. This skill only covers OS-level diagnostics.
Diagnostic workflow:
- Always start with Section 1 (System Environment Baseline) to establish context
- Then run the sections relevant to the user's reported symptoms
- If the root cause is unclear, run all sections in order for a comprehensive check
> Commands: Run the corresponding section in [scripts/diagnostics.sh](scripts/diagnostics.sh). All commands are read-only — no writes, restarts, or deletes. Run as root with export LANG=C. > > Issue Registry: See [reference.md](reference.md) for severity level definitions and the complete issue name table.
Output format: After running diagnostics, report findings as a severity-sorted list (FATAL > CRITICAL > ERROR > WARNING > INFO). For each issue found, include:
- Issue name (e.g.,
OpenClaw.Memory.SystemMemoryCritical) - Severity level
- Observed value vs threshold
- Recommended remediation
1. System Environment Baseline
Collect OS context for subsequent analysis.
Judgment rules:
- Record output as OpenClaw.System.EnvironmentBaseline (INFO) — no issues, context only.
2. Memory & OOM
Detect low memory and past OOM kills that affect any workload on this server.
Judgment rules:
- MemAvailable / MemTotal 2x
nproc→ OpenClaw.CPU.SystemLoadHigh (WARNING) - Remediation: Identify top CPU consumers; check for runaway processes
- CPU idle 90%) → OpenClaw.CPU.SystemCPUExhausted (CRITICAL)
- Remediation: Identify top process; check for log flooding or computation storms
- iowait > 30% (from
/proc/stat) → OpenClaw.CPU.HighIOWait (WARNING) - Remediation: Check disk I/O — likely excessive logging or disk-bound workload
4. Network Infrastructure
Basic network configuration, DNS, IPv6, and firewall state.
Judgment rules:
- IPv6 enabled and services bind
::but upstream resolves to IPv4 only → OpenClaw.Network.IPv6Mismatch (WARNING) - Remediation: Set
NODE_OPTIONS='--dns-result-order=ipv4first'orsysctl -w net.ipv6.conf.all.disable_ipv6=1
5. Disk & inotify
Disk space exhaustion and inotify limits cause "ENOSPC" errors.
Judgment rules:
- Any filesystem usage >= 95% → OpenClaw.Disk.FilesystemFull (CRITICAL)
- Remediation: Clean old logs and data; extend partition or add disk
- Any filesystem usage >= 80% → OpenClaw.Disk.FilesystemHighUsage (WARNING)
- Remediation: Monitor; plan cleanup or expansion
max_user_watches> /etc/sysctl.d/99-inotify.conf && sysctl -p /etc/sysctl.d/99-inotify.conf`max_user_instances> /etc/sysctl.d/99-inotify.conf && sysctl -p /etc/sysctl.d/99-inotify.conf`
6. File Descriptor & Process Limits
Low ulimits cause "too many open files" (EMFILE) errors under load.
Judgment rules:
- Shell
ulimit -nfs.nr_open→ OpenClaw.Limits.NofileExceedsKernelMax (CRITICAL) - Remediation: Increase
fs.nr_openfirst:sysctl -w fs.nr_open=1048576and persist in/etc/sysctl.d/ file-nrallocated / max > 80% → OpenClaw.Limits.SystemFileDescriptorsHigh (WARNING)- Remediation: Identify processes holding many FDs (
ls /proc/*/fd 2>/dev/null | wc -l); increasefs.file-maxif needed
7. Kernel & Sysctl Tuning
nf_conntrack, TCP tuning, and somaxconn affect high-concurrency workloads.
Judgment rules:
nf_conntrack_max10000 → OpenClaw.Kernel.TimeWaitOverflow (WARNING)- Remediation: Enable
tcp_tw_reuse, increasetcp_max_tw_buckets, reducetcp_fin_timeout - ListenOverflows > 0 in
/proc/net/netstat→ OpenClaw.Kernel.TcpListenOverflows (WARNING) - Remediation: Increase
somaxconnand application backlog setting vm.overcommit_memory = 2and swap > /etc/resolv.conf; for systemd-resolved check/etc/systemd/resolved.conf`nslookup,dig, andgetentall fail for a known-good domain → OpenClaw.Network.DNSResolutionFailed (CRITICAL)- Remediation: Verify network connectivity; check if nameservers are reachable; inspect firewall rules blocking UDP/TCP port 53
- Any configured nameserver fails TCP/53 reachability test → OpenClaw.Network.DNSNameserverUnreachable (WARNING)
- Remediation: Replace unreachable nameserver in
/etc/resolv.conf; consider adding a backup nameserver
9. Time Synchronization
Clock drift causes SSL/TLS certificate validation failures, API auth token rejection, and log timestamp inconsistencies.
Judgment rules:
- None of
chronyd,ntpd, orsystemd-timesyncdis active → OpenClaw.Time.NTPServiceNotRunning (ERROR) - Remediation: Install and enable a time sync service —
yum install chrony && systemctl enable --now chronyd(RHEL/CentOS) orapt install chrony && systemctl enable --now chronyd(Debian/Ubuntu) timedatectlshows "NTP synchronized: no" → OpenClaw.Time.ClockNotSynchronized (CRITICAL)- Remediation: Start NTP service; verify NTP server reachability (
chronyc sourcesorntpq -p); check firewall allows UDP port 123 chronyc trackingshows system clock offset > 3 seconds, or hwclock drift > 5 seconds from system time → OpenClaw.Time.ClockDriftDetected (WARNING)- Remediation: Force sync —
chronyc makesteporntpdate -u pool.ntp.org; investigate why drift occurred (suspended VM, unreachable NTP server)
10. Zombie & D-State Processes
Zombie processes indicate child process leaks; D-state (uninterruptible sleep) processes signal I/O hangs that block system operations.
Judgment rules:
- Zombie count > 10 → OpenClaw.Process.ZombieProcessesHigh (WARNING)
- Remediation: Identify parent processes (
ps -eo pid,ppid,stat,comm | awk '$3~/Z/'); the parent is not reaping children — restart or fix the parent process - D-state process count > 0 → OpenClaw.Process.DStateProcessesFound (CRITICAL)
- Remediation: D-state processes are blocked on I/O — check disk health (
dmesg | grep -i error), NFS mounts (mount -t nfs), and storage subsystem; these processes cannot be killed normally - Total process count > 80% of
kernel.pid_max→ OpenClaw.Process.TotalProcessCountHigh (WARNING) - Remediation: Identify process-spawning storms (
ps -eo user --sort=user | uniq -c | sort -rn | head); increasekernel.pid_maxif needed
11. Systemd Journal & Log Disk Usage
Systemd journal grows unbounded on long-running servers, silently consuming disk space — a common hidden root cause of "disk full" events.
Judgment rules:
- Journal disk usage > 2 GB → OpenClaw.Logs.JournalDiskUsageHigh (WARNING)
- Remediation:
journalctl --vacuum-size=500M; setSystemMaxUse=500Min/etc/systemd/journald.confand restartsystemd-journald /var/logtotal size > 5 GB → OpenClaw.Logs.VarLogOversized (WARNING)- Remediation: Identify large files (
find /var/log -type f -size +100M); configure logrotate; clean old rotated logs
12. Filesystem Integrity
Read-only filesystem (from ext4/xfs journal errors) prevents writing session data, logs, and PID files. Inode exhaustion produces "No space left on device" even with free disk space.
Judgment rules:
- Any non-virtual mount has
roflag, or/tmpwrite test fails → OpenClaw.Disk.ReadOnlyFilesystem (CRITICAL) - Remediation: Check
dmesgfor filesystem errors; runfsckon the affected partition (requires unmount or single-user mode); may indicate disk hardware failure - Any real filesystem inode usage >= 80% → OpenClaw.Disk.InodeUsageHigh (WARNING)
- Remediation: Find directories with many small files (
find / -xdev -printf '%h\n' | sort | uniq -c | sort -rn | head -10); clean up session/temp files dmesgcontains EXT4-fs error, XFS error, or read-only remount messages → OpenClaw.Disk.FilesystemErrorsDetected (CRITICAL)- Remediation: Back up data immediately; run
fsckat next maintenance window; check disk SMART status (smartctl -a /dev/sdX)
13. Firewall & Outbound Connectivity
Firewall rules blocking inbound or outbound traffic are the #1 cause of "port not reachable" and "API connection refused" in self-hosted deployments.
Judgment rules:
- DROP or REJECT rules detected on INPUT or OUTPUT chains → OpenClaw.Network.FirewallDropRulesDetected (WARNING)
- Remediation: Review rules — ensure required ports (gateway port, 443 outbound) are allowed; use
iptables -L -n -vfor detailed hit counts
ufw statusshows default deny incoming (informational only) → OpenClaw.Network.UFWDefaultDeny (INFO)- Remediation: No action required if intentional; ensure gateway port is explicitly allowed (
ufw allow /tcp)
14. Transparent Hugepages
THP causes latency spikes and memory fragmentation for Node.js workloads. Multiple database and runtime vendors recommend disabling it on servers.
Judgment rules:
- THP
enabledis set to[always]→ OpenClaw.Kernel.THPEnabled (WARNING) - Remediation:
echo never > /sys/kernel/mm/transparent_hugepage/enabled; persist via systemd unit or/etc/rc.local - THP
defragis set to[always]→ OpenClaw.Kernel.THPDefragEnabled (INFO) - Remediation:
echo never > /sys/kernel/mm/transparent_hugepage/defrag; reduces latency spikes from compaction
15. TCP Connection Overload
Excessive network connections exhaust file descriptors, memory, and conntrack table capacity, degrading system-wide performance.
Judgment rules:
- Total TCP connections > 10000 → OpenClaw.Network.TcpConnectionCountHigh (WARNING)
- Remediation: Identify top connection-holding processes; check for connection leaks; consider connection pooling
- CLOSE_WAIT count > 500 → OpenClaw.Network.CloseWaitAccumulation (ERROR)
- Remediation: CLOSE_WAIT indicates the local application is not calling
close()on sockets — identify the leaking process and restart it; this is an application bug - ESTABLISHED count > 5000 → OpenClaw.Network.EstablishedConnectionsHigh (WARNING)
- Remediation: Review whether all connections are legitimate; check for connection pool exhaustion or slow clients holding connections open
- Ephemeral ports in use > 80% of available range → OpenClaw.Network.EphemeralPortExhaustion (CRITICAL)
- Remediation: Widen range
sysctl -w net.ipv4.ip_local_port_range='1024 65535'; enabletcp_tw_reuse; check for connection leaks
16. Headless Browser / Chromium Dependencies
OpenClaw skills that use browser automation (Playwright, Puppeteer) require Chromium shared libraries and headless mode. The diagnostic first tests whether Chrome can actually launch in headless mode. Dependency diagnosis is only performed when Chrome fails or is absent.
Judgment rules:
- Chrome headless launch test (
--headless=new --dump-dom about:blank) succeeds → no issue, skip dependency checks - Chrome headless launch test fails → proceed with dependency diagnosis below:
- Any of the 7 critical shared library stems (libnss3, libatk-bridge-2.0, libgbm, libxkbcommon, libdrm, libgtk-3, libasound) is absent from
ldconfig -p→ OpenClaw.Browser.ChromiumDependenciesMissing (ERROR) - Remediation: On Debian/Ubuntu:
apt install -y libnss3 libatk-bridge2.0-0 libgbm1 libxkbcommon0 libdrm2 libgtk-3-0 libasound2; on RHEL/CentOS:yum install -y nss atk at-spi2-atk mesa-libgbm libxkbcommon libdrm gtk3 alsa-lib lddon chromium binary shows one or more "not found" entries → OpenClaw.Browser.ChromiumBinaryLddFailures (CRITICAL)- Remediation: Install the specific missing libraries identified by
ldd; runldconfigafter installation to update the dynamic linker cache /proc/sys/kernel/unprivileged_userns_cloneis0→ OpenClaw.Browser.UserNamespaceDisabled (ERROR)- Remediation:
sysctl -w kernel.unprivileged_userns_clone=1and persist in/etc/sysctl.d/99-userns.conf; or configure Chromium with--no-sandbox(less secure, not recommended for production)
17. Locale & Encoding Configuration
Missing or misconfigured locale causes garbled text output, incorrect sorting in logs, and subtle bugs like backspace deleting two characters over SSH (when client sends UTF-8 but server expects ASCII). OpenClaw's text processing relies on correct UTF-8 support.
Judgment rules (use the persistent LANG value read from /etc/default/locale or /etc/locale.conf, not the runtime $LANG which may be overridden to C by the diagnostic runner):
- Persistent
LANGis empty, unset, or set toPOSIX/C→ OpenClaw.Locale.LocaleNotConfigured (ERROR) - Remediation: On Debian/Ubuntu:
apt install locales && dpkg-reconfigure locales, then setLANG=en_US.UTF-8in/etc/default/locale; on RHEL/CentOS:localectl set-locale LANG=en_US.UTF-8 - The persistent
LANGvalue does not appear inlocale -aoutput (configured but not generated/installed) → OpenClaw.Locale.LocaleNotGenerated (WARNING) - Remediation: On Debian/Ubuntu: uncomment the locale in
/etc/locale.genand runlocale-gen; on RHEL/CentOS:localedef -i en_US -f UTF-8 en_US.UTF-8 - Persistent
LANGdoes not containUTF-8orutf8→ OpenClaw.Locale.NonUTF8LocaleDetected (WARNING) - Remediation: Change to a UTF-8 variant:
localectl set-locale LANG=en_US.UTF-8; re-login for the change to take effect
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: zjxylc
- Source: zjxylc/linux-system-health
- License: MIT-0
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.