Linux servers rarely fail without warning. Rising I/O wait, memory pressure, inode exhaustion, and unstable services often appear long before users notice a problem. Yet many Linux server monitoring setups focus only on CPU, memory, and uptime, missing the signals that predict outages.
This guide covers the Linux metrics that matter most, recommended alert thresholds, best practices, and how to detect issues before they impact your applications.
Linux server monitoring at a glance
A quick overview of the Linux server metrics that matter most.
| Monitor | Why it matters |
|---|---|
| CPU I/O wait | Detect storage bottlenecks. |
| CPU steal time | Identify VM resource contention. |
| PSI metrics | Detect resource pressure before utilization spikes. |
| Available memory | Measure usable memory instead of cached memory. |
| Disk queue length | Reveal storage performance issues. |
| Inode utilization | Prevent disk full failures despite free space. |
| Service health | Ensure applications remain available. |
| Network errors | Detect packet loss and interface issues. |
Essential Linux server metrics you should track
Five categories cover the signals that separate a healthy server from one about to cause an incident.
CPU metrics: Beyond basic utilization
CPU utilization percentage is the first metric every admin checks.
A server running at 85% CPU utilization with 2% I/O wait time is healthy. A server at 40% CPU utilization with 25% I/O wait time is about to cause a user-facing cascade. That gap explains why teams get blindsided by incidents on servers that looked fine.
CPU I/O wait (iowait) measures the percentage of time the CPU sits idle while at least one pending disk I/O operation is waiting to complete. It catches storage bottlenecks that raw CPU percentage never will. Slow disks, excessive swap activity, and degraded RAID arrays all push iowait up.
CPU steal time matters if you run virtualized workloads. It tracks the percentage of time your virtual CPU waits while the hypervisor services another VM. Below 5% is normal and above 10% sustained for 20 or more minutes means your VM is losing cycles to contention.
PSI metrics: Measuring real resource pressure
Traditional metrics tell you how much of a resource is being used. Pressure Stall Information (PSI) tells you how much work is being delayed because of it. That's a fundamentally different signal and a more accurate one.
Available on Linux kernel 4.20+, PSI tracks CPU, memory, and I/O stalls in real time via /proc/pressure/, the Linux kernel's resource pressure interface.
It reports two measurements for each resource:
- some means at least one task is stalled. The system still makes progress, but certain processes are delayed. This is your early warning.
- full means all non-idle tasks are stalled at once. Any sustained non-zero full value demands immediate attention.
A server with memory utilization at 70% might look fine on a traditional dashboard while PSI memory some climbs steadily, telling you that processes are already being delayed by memory contention before any threshold is breached. PSI catches the degradation that utilization metrics miss.
OpManager Nexus' Linux agent collects PSI metrics on supported kernels automatically.
Memory metrics: Catching pressure before OOM
Linux aggressively uses free memory for page cache and buffers. A server reporting 95% used memory might have 40% available for applications. The metric that matters is available memory (MemAvailable in /proc/meminfo), not used memory. Admins who alert on used memory generate false positives and eventually learn to ignore their own alerts.
Swap activity is where most setups go wrong. The danger signal is active swapping: high swap-in/swap-out rates (si/so in vmstat) paired with memory pressure. A server with 2GB of swap allocated but near-zero swap I/O is fine. A server with 500MB allocated and constant swap activity is heading for trouble.
A sustained increase in major page faults, particularly alongside declining available memory and rising swap activity, can indicate increasing memory pressure and a higher risk of out-of-memory (OOM) kills.
Disk metrics: I/O latency and inode exhaustion
Disk queue length gets overlooked more than almost any other disk metric. It represents pending I/O operations. A queue that keeps growing means the storage device can't keep up and that shows up as slow application loads even when CPU and memory look healthy. Below two per disk is fine but sustained above four is critical.
For SSDs, read/write latency above 25ms sustained is a problem. Spinning disks get a wider margin: 50ms.
Inode exhaustion is the failure mode most admins learn about the hard way. A filesystem with 50GB of free space but zero free inodes cannot create a single new file. Applications crash. Scheduled tasks fail silently. This happens on systems that generate lots of small files: cache directories, session files, log rotation outputs. Fixing it requires reformatting the filesystem, which is destructive. Monitoring inode utilization and alerting at 85% is the only reliable prevention.
Network metrics: Throughput, errors, and packet loss
Network metrics need baselines. Without one, the numbers mean nothing. A 10Gbps interface running at 1Gbps is healthy. A 1Gbps interface at 950Mbps is about to saturate. Set warnings at 70% of link speed and critical at 90%.
Packet loss below 0.1% is healthy. Above 1% sustained, look at NIC health, driver issues, or bandwidth saturation.
Process and system metrics: Load average, zombies, and context switches
Load average is the most commonly misread metric in Linux. Unlike traditional Unix, Linux load average includes processes waiting for I/O, not just CPU. A load average of eight on a four-core system doesn't necessarily mean CPU saturation—it could be I/O saturation with idle CPUs. A healthy load average stays below the available CPU core count, values above 1.5 times indicate a warning, and sustained values above two times are considered critical.
Compare the one-minute, five-minute, and 15-minute values. The one-minute value running much higher than 15-minute means load is spiking. Lower means the system is recovering.
Zombie processes consume no CPU or memory, but they occupy Process ID (PID) slots and the limit varies by distribution and systemd configuration. A rising count points to a parent process failing to call wait(). It's a ticking clock toward PID exhaustion.
Context switches are workload-dependent. A sustained increase in involuntary context switches (nvcswch/s) can indicate CPU contention, but it should always be interpreted alongside CPU utilization, load average, and run queue depth rather than using a fixed threshold.
Linux service monitoring: The layer most teams miss
Servers don't just serve metrics; they serve applications. And applications depend on services: web servers, databases, SSH daemons, container runtimes. Monitoring CPU and memory without monitoring the services that run on top tells you half the story.
Why service health is not the same as process health
A process running and a service being healthy are not the same thing. Consider these failure scenarios:
- Nginx is running as a process, but its worker processes have hit the connection limit. New requests are being dropped.
- MySQL is alive, but it has hit max_connections and is refusing new queries. The process shows green; the service is effectively down.
- An SSH daemon has crashed and been restarted by systemd three times in the last hour. The process is running; the service is unstable.
- A Docker daemon is running but a critical container has exited. The process is up; the workload is down.
Process monitoring tells you whether a binary is executing. Service monitoring tells you whether a service is available, stable, and behaving as expected. The difference matters most during the window between a failure beginning and a user noticing which is exactly the window where the incident can still be contained.
Critical Linux services to monitor
| Service | What to monitor | Key failure signal |
|---|---|---|
| Nginx / Apache | Active connections, worker status, request error rate | Worker limit hit; upstream failures |
| MySQL / PostgreSQL | Connection count, query latency, replication lag | Max connections; slow query spike |
| SSH (sshd) | Service availability, restart count | Repeated restarts; failed authentication spikes |
| Docker | Daemon status, container exit events | Containers exiting unexpectedly |
| Cron | Job execution status, last run time | Silent job failures; skipped executions |
| systemd services | Active/inactive/failed unit counts | Unit entering failed state |
Service monitoring vs. manual scripts
Traditionally, teams monitor Linux services by writing shell scripts that check process status with ps, systemctl status, or pgrep, then cron these checks and pipe alerts into email. The problems with this approach are well known:
- Scripts break silently when service names change.
- There is no historical trend data on service state transitions.
- Teams get alert fatigue from poorly tuned thresholds.
- There is no correlation between service failures and system metrics.
Modern monitoring platforms discover services automatically; track state transitions; alert on restart counts; and correlate service failures with the CPU, memory, and I/O metrics that may have caused them. OpManager Nexus' Linux service monitoring auto-discovers services running on the server and monitors them without requiring custom scripts—configuring alerts on service availability, restart events, and threshold breaches from the same dashboard used for infrastructure metrics.
Critical metric thresholds: When to alert
Use this reference table as a starting point for your alert policies. Thresholds vary by workload, hardware, and environment. Tune them against your own baselines over time.
| Metric | What it measures | Healthy | Warning | Critical | Action |
|---|---|---|---|---|---|
| CPU utilization | Overall processor usage | < 70% | 70–85% sustained | > 85% sustained | Identify top processes; scale if sustained. |
| CPU I/O wait | CPU idle time waiting for disk I/O | < 5% | 5–20% | > 20% sustained | Investigate disk subsystem; check for swap thrashing. |
| CPU steal time | Time VM waits for physical CPU | < 5% | 5–10% sustained | > 10% for 20+ min | Migrate VM or increase CPU allocation. |
| Memory utilization | Actual memory usage (excluding cache) | < 80% | 80–90% | > 90% | Identify memory-heavy processes; add RAM. |
| Swap activity | Active swap-in/swap-out rate | Near zero | si/so > 0 sustained | High si/so + high memory util | Investigate memory pressure; add RAM. |
| Disk utilization | Storage capacity consumed | < 70% | 70–85% | > 90% | Archive old data; expand storage. |
| Disk queue length | Pending I/O operations | < 2 | 2–4 sustained | > 4 sustained | Upgrade to faster storage; optimize I/O. |
| Read/write latency | Disk operation response time | < 10ms (SSD) | 10–25ms (SSD) | > 25ms (SSD) sustained | Check disk health; investigate I/O patterns. |
| Inode utilization | Filesystem metadata capacity | < 75% | 80–85% | > 90% | Remove small/temp files; reformat if needed. |
| Load average | Process queue depth (1/5/15 minute) | < core count | > 1.5x core count | > 2x core count sustained | Correlate with CPU/IO; scale if needed. |
| Zombie processes | Defunct child processes | 0 | 1–5 | > 5 or rising | Fix parent process; restart service. |
| Network error rate | Packet errors and discards | < 0.1% | 0.1–1% | > 1% sustained | Check NIC health; investigate driver issues. |
| PSI (memory some) | Memory resource contention | avg300 < 0.1 | avg300 0.1–1.0 | avg300 > 1.0 or full > 0 | Investigate memory allocation; add RAM. |
| Service availability | Critical service up/down state | Up | Restart count > 1/hr | Down or failed state | Restart service; investigate root cause. |
Linux command-line tools vs. modern monitoring platforms
Native CLI tools: Strengths and limits
Linux ships with powerful diagnostic tools that every administrator should know about:
top and htop give you real-time process activity: per-process CPU and memory usage, load average, and CPU breakdown including iowait and steal time. While running top, press 1 to toggle between aggregate and per-core CPU view. htop adds a cleaner layout and easier navigation.
vmstat 5 10 samples every five seconds for 10 iterations. Watch the si/so columns. Non-zero values sustained over time are the active swapping signal—that matters far more than how much swap is allocated.
iostat reports per-device I/O statistics: transfers per second, read/write rates, queue size, wait time, utilization. You need the sysstat package installed.
sar stands alone among CLI tools for one thing: native historical data. It collects system performance metrics via cron into /var/log/sa/.
What all these tools share: no alerting, no cross-server correlation, no service-level visibility, and no insight into degradation when nobody is awake to catch. They show you the present. They cannot tell you whether Nginx will fall over in the next 20 minutes, or whether the inode count on /var has been trending toward exhaustion for two weeks.
When to move beyond CLI tools
CLI tools are ideal for real-time triage on a single server. They break down when:
- You manage more than a handful of servers.
- You need to detect degradation trends, not just the current state.
- You need to correlate service failures with infrastructure metrics.
- You need alerting that reaches on-call engineers without anyone watching a screen.
- You need audit trails for compliance or post-incident review.
This is where monitoring platforms fill the gap.
Linux server log monitoring: The missing piece
CPU, memory, and disk metrics show that a Linux server is under stress. Logs reveal what triggered it. System events, service restarts, SSH failures, and application errors often appear in syslog, journald, and application logs before they become outages.
Centralized Linux log monitoring helps IT teams correlate these events with infrastructure metrics, reducing troubleshooting time and providing a complete operational view.
Monitor these critical Linux logs:
- Syslog and journald: Kernel messages, service state changes, and hardware warnings
- SSH authentication logs: Failed login attempts and authentication spikes
- Web server logs: Request error rates, upstream failures, and worker status
- Database logs: Slow queries, connection failures, and replication lag
Common Linux monitoring mistakes
Even experienced teams make some monitoring errors. Here are the four that cause the most production incidents.
1. Relying only on CPU utilization
CPU percentage is the most visible metric and one of the least predictive. A server at 40% CPU with 25% iowait is failing. A server at 85% CPU with 2% iowait is healthy. If your primary CPU alert is on utilization percentage, you will miss most real incidents and generate false positives on many healthy servers. Switch your primary alerts to iowait and steal time.
2. Ignoring inode usage
Disk space and inode usage are tracked separately. A filesystem can have 50GB of free space and zero free inodes, at which point no new files can be created. This failure mode is common on servers that generate large numbers of small files (log rotation, session files, cache directories) and almost always comes as a surprise because most monitoring setups only alert on disk space. Add inode utilization to your threshold profiles with a warning at 80% and critical at 90%.
3. Missing service-level monitoring
Process monitoring and service monitoring are not interchangeable. A process running does not mean a service is healthy. Nginx can be running while workers are exhausted. MySQL can be running while refusing new connections. SSH can be restarting every 15 minutes. If your monitoring only checks whether a PID exists, you have no visibility into whether the applications your users depend on are actually serving them.
4. Using static thresholds on dynamic workloads
A static threshold that works during off-peak hours generates constant alerts during peak load periods. Teams that set static thresholds and leave them eventually start ignoring alerts which defeats the purpose of monitoring. Dynamic thresholds that adapt to baseline behavior reduce alert fatigue and catch genuine anomalies that static rules miss. If your monitoring platform supports anomaly detection or AI-based thresholds, use them for high-variance metrics like CPU utilization and network traffic.
Linux server health check best practices
Monitoring is continuous. Health checks are periodic. You need both.
Daily: Review load average trends. Check for zombie process accumulation. Confirm swap I/O rates are sitting near zero. Verify that critical services (Nginx, MySQL, SSH, Docker) show no restart events overnight.
Weekly: Review disk and inode utilization trends across all mount points. Look for sustained iowait or steal time patterns trending upward. Review PSI some values for memory and I/O; a gradual increase over days is an early signal that workload is outgrowing available resources.
Monthly: Audit your alert thresholds against the reference table. Review service restart histories for patterns. If a service is restarting once a week, that's a signal, not noise.
Monitor your Linux servers with OpManager Nexus
Effective Linux monitoring requires continuous visibility across the operating system, not just periodic health checks. OpManager Nexus supports both agent-based and agentless Linux monitoring, giving you the flexibility to monitor physical servers, VMs, and cloud instances from a single platform.
OpManager Nexus delivers complete Linux server monitoring through a unified platform:
- Monitor critical performance metrics: Track CPU, load average, iowait, PSI, memory, swap, disk utilization, disk queues, and inode usage in real time.
- Keep services and processes healthy: Monitor system services, application availability, process health, and zombie processes with instant alerts.
- Correlate events for faster root cause analysis: Connect infrastructure metrics, service events, and performance anomalies to reduce alert noise and accelerate troubleshooting.
- Automate incident response: Configure intelligent thresholds, receive proactive notifications, and trigger remediation workflows for recurring issues.
Move beyond isolated Linux metrics with unified server monitoring in OpManager Nexus. Start your free trial or request a personalized demo to see it in action.
Frequently asked questions
1. What are the most important Linux server metrics to monitor?
The most important Linux server metrics include CPU utilization, CPU iowait, load average, available memory, PSI, disk queue length, inode utilization, service health, network errors, and zombie processes. Together, they provide a complete view of server performance and reliability.
2. What is PSI monitoring in Linux, and why does it matter?
Pressure Stall Information (PSI) is a Linux kernel feature that measures how much time processes spend waiting for CPU, memory, or I/O resources. Unlike utilization metrics, which tell you how busy a resource is, PSI tells you how much that resource contention is actually impacting your workloads.
3. How do I check inode usage on a Linux server?
OpManager Nexus continuously tracks inode utilization across Linux file systems, helping you identify inode exhaustion before it causes disk full errors. You can also verify inode usage manually using the df -i command.
4. What is the difference between process monitoring and service monitoring in Linux?
Process monitoring tracks the resource usage and behavior of individual processes, whereas service monitoring ensures critical applications and system services remain running and available. Both are essential for reliable Linux operations.
5. How does OpManager Nexus monitor Linux servers?
OpManager Nexus monitors Linux servers by collecting over 100 metrics in real time, including CPU utilization and iowait, memory pressure and swap activity, disk I/O and IOPS, load average, inode utilization, network errors, and GPU health. It auto-discovers critical services, tracks top processes by CPU and memory consumption, and correlates events for faster root cause analysis. Advanced threshold alerting, capacity planning, IT automation, and custom dashboards give SRE and IT operations teams complete visibility and control from a single platform.