On this page
Why is monitoring not a luxury but your first line of defense?
Picture this scenario: your online store is running quietly, then at 3 a.m. the disk starts filling up because of bloated log files. At 4 a.m. the database stops writing because the disk is 100% full. At 9 a.m. customers start calling to complain that the site isn't working. You discovered the problem six hours after it happened, and from your customers, not from your tools. This is exactly the disaster monitoring prevents.
Good monitoring flips the equation: instead of a visitor telling you the site is slow or down, your own system tells you first — usually before the problem turns into an actual failure. A disk that has reached 85% alerts you today so you can clean it up, instead of reaching 100% tomorrow and bringing everything down. Memory that has started leaking shows up as a slow upward curve a week before the system kills your important process.
The difference between shared hosting and a VPS is fundamental here too. On shared hosting, the provider monitors the server for you. On an unmanaged VPS, you are the only eye on the server's health. Monitoring is the logical next step after you have set up your server from scratch (see Setting up your first VPS server from scratch) and hardened it; without an eye watching, all that setup is wasted at the first silent failure. Nobody will tell you that the CPU has been at 100% for two hours, that the nginx service crashed, or that someone is consuming all the network bandwidth. This responsibility is the price of the freedom a VPS gives you, and monitoring is the tool that makes that responsibility bearable.
And monitoring isn't only about failures. It is your source of data for making decisions: when do you need to upgrade? Is the CPU the bottleneck, or the memory? Is the site slow because of the disk, the database or the network? Without numbers, all these questions are answered by guesswork. With monitoring, they are answered with evidence.
The three layers of monitoring
Mature monitoring isn't one tool but three complementary layers, each with a role the others can't play:
| Layer | The question it answers | When to use it | Example tools |
|---|---|---|---|
| Instant local | "What is happening inside the server right now?" | When diagnosing a live problem | top, htop, free, df, iostat, ss |
| Continuous central | "How have resources evolved over time?" | To spot trends and send alerts | netdata, Prometheus + Grafana, Zabbix |
| External | "Is the site reachable from outside the server at all?" | To detect outages and downtime | UptimeRobot, Pingdom, Better Uptime |
The crucial point many people miss: the external layer sees what the other two layers can't. When the server goes down completely, loses its network connection or reboots, the internal monitoring tools go down with it and can't alert you — simply because they were running on the same server that died. External monitoring, running from somewhere else entirely, is the only thing that detects this and contacts you.
The key metrics: what to monitor and why
Before choosing tools, you need to understand what you are measuring. Six metrics form the backbone of any server's health. Each tells a different story, and interpreting them correctly is what separates useful monitoring from mere numbers on a screen.
The diagram above summarizes the six metrics and where each comes from inside the server. Now let's explain each in depth, with suggested alert thresholds. Start with this reference table, which we will go through in detail afterwards:
| Metric | What it measures | Quick command | Suggested warning threshold | Critical threshold |
|---|---|---|---|---|
| CPU usage | How busy the cores are | top, htop, mpstat | > 80% for 5 minutes | > 95% sustained |
| Memory (RAM) | Used vs. available | free -h | Available < 15% | Available < 5% or swap active |
| Disk space | The percentage full | df -h | > 80% | > 90% |
| Disk input/output (I/O) | Disk wait | iostat, vmstat | iowait > 20% | iowait > 40% |
| Network | Inbound/outbound traffic | ss, iftop, vnstat | Approaching the plan's capacity | Link saturation |
| Load average | CPU queues | uptime, top | load > number of cores | load > 2× the cores |
| Availability (uptime) | Whether the site is reachable | External monitoring | Response > 3 seconds | No response |
1) CPU usage
CPU usage is the percentage of processing capacity that is actually busy. But the total number alone is misleading; what matters is breaking it down into its components. When you watch top, you will see a breakdown like: us (user time — your applications), sy (system time — the kernel), wa (waiting for the disk/I/O), id (idle). A high us means your applications are working hard (PHP, Node, a database). A high wa (iowait) is a serious sign: the CPU is sitting waiting for the disk, meaning your real problem is the disk, not the CPU.
An important point on a VPS: your cores may be "shared" with neighbors on the same physical host (especially on cheap plans). If you see a high st (steal time) in top, it means the host is stealing your CPU time for other virtual machines — a sign of an overcrowded host, and the fix is usually upgrading or changing providers.
2) Memory (RAM) and swap
The most misunderstood metric. Many people panic when they see memory "full," but Linux deliberately uses free memory for caching (buffers/cache) to speed up the system, and releases it immediately when needed. So don't look at "used" but at the available column in free -h — which represents what applications can actually take. The real danger isn't full memory, but the system starting to use swap heavily.
Swap is space on the disk that the system uses as backup memory when RAM runs out. The problem is that the disk is thousands of times slower than memory, so when swap starts working actively (swapping), the server becomes very slow. The rule: having swap is fine, but swap that is constantly active is a sign that you need more RAM. Worse still is the OOM Killer: when memory and swap both run out, the kernel kills the largest process to save the system — and that may be your database. Watch dmesg for Out of memory to detect this.
3) Disk space and I/O
These are two separate metrics that beginners confuse:
- Capacity: how full is the disk? Measured with
df -h. A full disk is a silent disaster: databases stop writing, logs fail, and the site may crash without a clear error message. Also watch inodes (df -i); you may have free space but run out of inodes because of millions of small files, so the system refuses to create new files even though there is space. - Performance/input-output (I/O): how busy is the disk with reads/writes? Measured with
iostat. Even if there is enough space, the disk can be the bottleneck if%utilis close to 100% orawait(request wait time) is high. This is common with HDDs or plans with low IOPS limits.
4) Network (input/output)
You monitor inbound (RX) and outbound (TX) traffic. Three things matter here: bandwidth consumption (are you approaching your plan's monthly limit?), instantaneous throughput (is your link saturated, slowing everything down?), and the number of active connections (ss -s). A sudden, unexplained spike in traffic may mean a DDoS attack, heavy bot crawling, or your server having become part of a botnet after being compromised. Regular network monitoring reveals anomalies early.
5) The load average and how to interpret it correctly
By far the most misinterpreted metric. The load average is three numbers (such as 0.52, 0.48, 0.40) that represent the number of processes running or waiting for the CPU over the last 1, 5 and 15 minutes. The common mistake: thinking the number is a percentage. It isn't.
The golden rule: compare the load with the number of CPU cores. On a single-core server, the ideal load is around 1.0 (fully busy with no queue). The same 1.0 on a 4-core server means it is only 25% busy — excellent health. Here is the reference table:
| Load average | Single-core server (1 core) | 4-core server | Interpretation |
|---|---|---|---|
| 0.50 | 50% utilization | ~12% utilization | Comfortable |
| 1.00 | Fully saturated (the limit) | 25% utilization | Normal |
| 2.00 | Overloaded 2× | 50% utilization | Pressure on the single core |
| 4.00 | Severe congestion | Fully saturated (the limit) | The limit on 4 cores |
| 8.00 | Very critical | Overloaded 2× | Long queues, obvious slowness |
To find your number of cores: nproc. The practical rule: if the load exceeds the number of cores for a long period, there is a queue and slowness; watch all three numbers together — if the one-minute number is much higher than the 15-minute number, the load is rising right now.
6) Uptime and availability
This metric is fundamentally different: it isn't measured from inside the server but from outside it. Availability answers the simple question your customer cares about: "Is the site working right now?" It is usually expressed as a percentage (such as 99.9%) and translates into the minutes of downtime allowed per month. Understanding these percentages is essential for judging the quality of your hosting and your goals:
Every "nine" you add to the availability percentage sharply reduces the allowed downtime — and raises the cost of achieving it. For more detail on these percentages and service level agreements, see our dedicated guide on the subject.
Layer one: instant local monitoring with commands
These are tools you run manually over SSH for on-the-spot diagnosis. They don't require complex installation (most are preinstalled or install simply), and they are your first line of defense when a live problem occurs. If you aren't yet comfortable connecting over SSH, start with SSH basics and then come back.
top and htop: what is consuming the CPU and memory?
The top tool is installed by default on every distribution, and htop is an improved version with colors and mouse interaction:
# The basic monitoring tool, installed by default
top
# Inside top: press M to sort by memory, P to sort by CPU, q to quit
# Install htop (clearer and easier) on Debian/Ubuntu
sudo apt update && sudo apt install -y htop
# On AlmaLinux/Rocky/CentOS
sudo dnf install -y htop
# Run htop
htopInside htop: the bars at the top show each core separately, plus memory and swap; you can press F6 to sort, F9 to kill a stuck process, and F5 to show the process tree. This is the fastest way to find the greedy process.
free: the real state of memory
# Show memory in a readable format (h = human-readable)
free -h
# Example output:
# total used free shared buff/cache available
# Mem: 3.8Gi 1.2Gi 180Mi 45Mi 2.4Gi 2.3Gi
# Swap: 2.0Gi 128Mi 1.9Gi
# Refresh every two seconds to watch the changes
free -h -s 2As mentioned: look at the available column (2.3Gi here = good health), not at used. A high buff/cache value is perfectly normal and not a problem. But a high used value in swap, with continuous activity, is a sign of memory pressure.
df and du: disk space and where it went
# Show the space used on each partition in a readable format
df -h
# Check inodes (important with millions of small files)
df -i
# Find the largest folders in a path (top 15, sorted descending)
sudo du -h --max-depth=1 / 2>/dev/null | sort -rh | head -n 15
# A common example: finding the largest bloated log files
sudo du -ah /var/log | sort -rh | head -n 10The typical diagnostic sequence: df -h reveals which partition is full, then du digs into it to find the folder/file responsible. It will often be /var/log (bloated logs), forgotten backups or temporary files.
iostat and vmstat: disk and memory performance
# Install the performance tools package (includes iostat and mpstat)
sudo apt install -y sysstat # On Debian/Ubuntu
# Or
sudo dnf install -y sysstat # On AlmaLinux/Rocky
# iostat every two seconds, with extended utilization stats (-x)
iostat -x 2
# In the output, look at:
# %util : how busy the disk is (close to 100% = a bottleneck)
# await : average disk request wait time in milliseconds
# r/s, w/s: read/write operations per second (IOPS)
# vmstat every two seconds: an overview of memory, CPU and disk
vmstat 2
# In the vmstat output, watch:
# si/so : swap in/out (should stay close to zero)
# wa : the share of CPU time waiting for the disk (iowait)
# r/b : processes waiting to run / blockedss and iftop: the network and connections
# Summary of connection statistics (TCP/UDP)
ss -s
# Show all listening TCP connections with the port and process
sudo ss -tulnp
# Count active connections per IP address (useful for detecting an attack/crawl)
sudo ss -tn state established | awk '{print $4}' | cut -d: -f1 | sort | uniq -c | sort -rn | head
# Watch real-time bandwidth per connection (install iftop)
sudo apt install -y iftop
sudo iftop -i eth0
# Historical bandwidth usage statistics (install vnstat)
sudo apt install -y vnstat
vnstat -d # Daily report
vnstat -m # Monthly report (important for tracking the plan's limit)uptime: load and running time at a glance
# One line that summarizes: uptime, number of users and the load average
uptime
# 14:32:01 up 27 days, 3:14, 2 users, load average: 0.52, 0.48, 0.40
# Find the number of cores to compare with the load
nproc
# 4 => a load of 0.52 on 4 cores means ~13% utilization (excellent)Reference table: quick check commands
Save this table; it is the "first aid kit" for any problem:
| Symptom | First command | What to look for |
|---|---|---|
| The site is suddenly slow | htop | A process using a high share of CPU/RAM |
| "No space left" messages | df -h, then du | The full partition and the folder responsible |
| Slowness even though the CPU is idle | iostat -x 2 | High %util and await (a disk problem) |
| Slowness and low memory | free -h, then vmstat 2 | Active swap (si/so > 0) |
| Unexplained traffic | sudo iftop and ss -tn | An IP consuming lots of bandwidth/connections |
| A stopped service | systemctl status <svc> | The failed state and the reason message |
| Looking for a root cause | dmesg -T | tail | OOM messages or hardware errors |
Layer two: continuous monitoring dashboards
Manual commands are great for on-the-spot diagnosis, but they can't tell you what happened yesterday at 3 a.m. This is where continuous monitoring tools come in: they collect data around the clock, plot it as graphs and send automatic alerts.
netdata: an instant real-time dashboard in a one-minute install
netdata is the easiest way to get a professional monitoring dashboard. It shows hundreds of metrics at one-second resolution through a beautiful web interface, with almost no configuration:
# Install with a single command via the official script (the simplest way)
wget -O /tmp/netdata-kickstart.sh https://get.netdata.cloud/kickstart.sh
sh /tmp/netdata-kickstart.sh
# After installation, the dashboard runs on port 19999
# Open: http://YOUR_SERVER_IP:19999
# (Protect the port with a firewall or behind a reverse proxy — don't leave it exposed)
# Check that the service is running
sudo systemctl status netdataAn important security point: the netdata dashboard shows sensitive details about your server, so don't leave port 19999 open to the world. Restrict it with UFW to your admin IP, put it behind a reverse proxy with authentication, or use Netdata Cloud. For details on securing ports, see Securing and hardening a VPS.
Glances: a complete overview in the terminal and the browser
Glances is a Python tool that brings everything (CPU, RAM, disk, network, processes, Docker containers) together on a single screen, and it can run in the terminal or as a web server:
# Install
sudo apt install -y glances # Debian/Ubuntu
# Or via pip for the latest version
pip install glances
# Run in the terminal (it color-codes values: green/orange/red by severity)
glances
# Run as a web server for browser access
glances -w
# Open: http://YOUR_SERVER_IP:61208Prometheus + Grafana: history and professional-grade monitoring
When you need real historical data, customizable dashboards and advanced alerts, the Prometheus + Grafana duo is the industry standard. The idea: Prometheus is a time-series database that collects and stores metrics (it collects them from node_exporter installed on the server), and Grafana is the display tool that draws beautiful interactive dashboards from that data. In exchange for its power, it is more complex to set up than netdata, and it suits those who manage several servers or want to keep data for a long time.
Zabbix: comprehensive enterprise monitoring
Zabbix is an integrated monitoring platform aimed at enterprises and server fleets. It stands out for its powerful alerting system, templates and automatic discovery, but it is the heaviest to set up and best suited to dozens or hundreds of servers, not a single one.
The decisive comparison table of the tools
| Tool | Type | Ease of setup | Historical data | Alerts | Best for |
|---|---|---|---|---|---|
| htop | Instant local | Instant | No | No | Quick on-the-spot diagnosis |
| Glances | Local + web | Very easy | Limited | Basic | A complete overview of a single server |
| netdata | Central, real-time | Very easy | Short-term | Yes | An instant dashboard with no hassle |
| Prometheus + Grafana | Central, historical | Medium/hard | Excellent (long-term) | Advanced | Several servers + history |
| Zabbix | Enterprise | Hard | Excellent | Very advanced | Server fleets |
| UptimeRobot | External | Instant | Yes | Yes (availability) | Detecting outages from outside |
How do you choose?
There is no absolute "best" tool, only the best for your situation:
- One server, and you want simplicity: netdata (for the dashboard) + htop (for diagnosis) + UptimeRobot (for availability). This combination covers 90% of needs with the least effort.
- Several servers, and you want history and customization: Prometheus + Grafana + node_exporter + Alertmanager, with UptimeRobot for external availability.
- An enterprise fleet: Zabbix or Prometheus at scale.
Layer three: external availability monitoring
Let's stress the key point again: internal server tools can't alert you when the server dies. If netdata goes down with the server, who will send you the alert? Nobody. That is why you need a completely independent external eye.
External monitoring is a service that runs from servers in multiple locations around the world, requests your site every minute (or half minute) and checks: does it respond? Is the status code 200? How long did it take? Is the SSL certificate valid? If the request fails from several locations, it contacts you immediately. And because it simulates a real visitor's experience, it sees exactly what your customer sees — including network and DNS failures the server itself can't see.
| Service | Check interval on the free plan | Alert channels | Standout feature |
|---|---|---|---|
| UptimeRobot | Every 5 minutes | Email, Telegram, Slack, Webhook | The best known and easiest, with a generous free plan |
| Pingdom | Limited trial | Email, SMS, app | Detailed speed reports |
| Better Uptime | Every 3 minutes | Phone calls, SMS, Slack | Status pages + on-call scheduling |
| Hetrix Tools | Every minute | Email, Telegram, Discord | IP blacklist monitoring |
A practical tip: monitor more than just "does the page open." Set up a check for an expected keyword in the page (keyword monitoring), because the server may respond with a 200 code but show a blank error page or an "under maintenance" message. Also monitor SSL certificate expiry and domain expiry — common, embarrassing failures that are easy to avoid.
Monitoring logs and services
Metrics tell you there is a problem; logs tell you why. Logs are the server's diary: every error, every request, every restart and every login attempt is recorded in them. Mastering how to read them is the difference between a precise diagnosis and a blind guess.
journalctl: the unified log on systemd systems
# Show the full system log (with paging and scrolling)
journalctl
# Log of a specific service only (for example nginx)
journalctl -u nginx
# Follow live (like tail -f) — useful while investigating a problem
journalctl -u nginx -f
# The last hour only, at error level and above
journalctl --since "1 hour ago" -p err
# Log since the last boot (useful for diagnosing a problem after a reboot)
journalctl -b
# The log's size on disk (it may be why the disk is full!)
journalctl --disk-usage
# Clean up logs older than 7 days to free up space
sudo journalctl --vacuum-time=7dTraditional /var/log files
Many services write to /var/log. These are the most important files and what you will find in them:
| File/path | Contents | When to check it |
|---|---|---|
/var/log/syslog (Debian) | The general system log | General failures, system services |
/var/log/messages (RHEL) | The general system log | General failures on AlmaLinux/Rocky |
/var/log/auth.log | Login and authentication attempts | Detecting SSH brute-force attacks |
/var/log/nginx/error.log | nginx web server errors | 502/504 errors, wrong configuration |
/var/log/nginx/access.log | All web requests | Analyzing traffic and crawling |
/var/log/apache2/error.log | Apache server errors | PHP errors, configuration |
/var/log/mysql/error.log | Database errors | MySQL crashes, out of memory |
/var/log/kern.log | Kernel messages | Hardware errors, the OOM killer |
# Follow nginx errors live while reproducing the problem
sudo tail -f /var/log/nginx/error.log
# The last 100 lines of the auth log to spot failed login attempts
sudo tail -n 100 /var/log/auth.log
# Count failed attempts per IP (detecting a brute-force attack)
sudo grep "Failed password" /var/log/auth.log | awk '{print $(NF-3)}' | sort | uniq -c | sort -rn | headRemember to enable logrotate (usually enabled by default) so it compresses and deletes old logs periodically — otherwise logs will silently fill your disk, one of the most common causes of a full disk. A panel such as CyberPanel makes browsing web logs easier from a graphical interface; see the CyberPanel guide.
Monitoring services and automatic restarts
It isn't enough to know that a service crashed; you want it to come back up automatically. The systemctl tool is your key:
# Status of a specific service (running / failed) with the last lines of its log
sudo systemctl status nginx
# List all currently failed services
systemctl --failed
# Enable the service to start automatically at boot
sudo systemctl enable nginx
# Restart a service
sudo systemctl restart nginxTo restart automatically on failure, add a directive to the systemd unit. Create an override file:
# Create/edit an override for a service (for example nginx)
sudo systemctl edit nginx
# Add these lines in the editor, then save:
# [Service]
# Restart=always
# RestartSec=5
# Reload the configuration to apply the change
sudo systemctl daemon-reload
sudo systemctl restart nginxWith this, if the service fails for any reason, systemd will restart it automatically after 5 seconds — a simple fix that raises your availability without human intervention.
Setting thresholds and alerts: an art, not just a science
A monitoring tool without alerts is like a switched-off alarm. But alerts are a double-edged sword: too few and you miss problems; too many and you suffer from alert fatigue — you start ignoring them all, and miss the important ones among them. The goal: few alerts that are precise and actionable.
Alert channels
| Channel | Speed | Best for | Note |
|---|---|---|---|
| Slow/medium | Non-urgent alerts, reports | Easily ignored if there are too many | |
| Telegram | Instant | Urgent alerts | Free, easy via a bot |
| Slack/Discord | Instant | Teams | Grouped by channel |
| SMS/phone call | Very instant | Critical failures only | For incidents worth waking you up at night |
| Webhook | Instant | Automation and integration | Connects to your own systems |
Principles for setting thresholds smartly
- Distinguish warning from critical: disk at 80% = a warning (clean it up in your own time), at 90% = critical (act now). Separate the two channels: warnings by email, critical alerts by Telegram/SMS.
- Require a duration, not a moment: don't alert on a CPU spike lasting one second (that is perfectly normal). Alert only if it exceeds 80% for 5 continuous minutes. This eliminates 90% of false alarms.
- Alert on what you can act on: every alert should correspond to a clear action. If you don't know what to do when it arrives, don't alert on it.
- Use escalation: if a warning isn't resolved within an hour, escalate it to critical. And if the site goes down, send it immediately through the loudest channel.
Suggested alert types
| Alert type | Suggested condition | Severity | Channel |
|---|---|---|---|
| Site down | No response from two external locations | Critical | SMS + Telegram |
| Disk full | Usage > 90% | Critical | Telegram |
| Disk filling up | Usage > 80% | Warning | |
| CPU under load | CPU > 85% for 5 minutes | Warning | Telegram |
| Low memory | available < 10% or swap active | Warning | Telegram |
| A stopped service | systemd state = failed | Critical | Telegram |
| SSL certificate | Expires within 14 days | Warning | |
| Brute-force attack | > 100 failed attempts/minute | High | Telegram |
A cron example for a simple check that alerts you
You don't always need a heavy tool. A simple script with cron may be enough for a critical check such as a full disk:
# Create the disk space check script: /usr/local/bin/disk-check.sh
#!/bin/bash
THRESHOLD=90
USAGE=$(df / | awk 'NR==2 {gsub("%",""); print $5}')
if [ "$USAGE" -ge "$THRESHOLD" ]; then
MSG="Warning: disk usage on $(hostname) has reached ${USAGE}%"
# Send via a Telegram bot (replace TOKEN and CHAT_ID)
curl -s -X POST "https://api.telegram.org/bot<TOKEN>/sendMessage" \
-d chat_id="<CHAT_ID>" -d text="$MSG" >/dev/null
fi# Make it executable
sudo chmod +x /usr/local/bin/disk-check.sh
# Add it to cron to run every 15 minutes
crontab -e
# Add this line:
*/15 * * * * /usr/local/bin/disk-check.shThis pattern (a simple script + cron + a Telegram bot) can be adapted to any check: a service's status, the load, the number of connections, or any metric you can read with a command.
Incident response: what do you do when the alarm goes off?
The alert has arrived. Don't panic. Follow a methodical sequence instead of jumping to random fixes:
- Confirm the problem: is it real or a false alarm? Check through two channels (for example external monitoring + a manual SSH connection).
- Determine the scope: is the whole server down, or a single service? Is the problem the server or the network/DNS? External monitoring helps here.
- Gather evidence before changing anything: take a snapshot of
htop,df -hand the last lines of the relevant log. You will need them for later analysis. - Apply the least invasive fix first: restart the failed service before rebooting the whole server.
- Document what happened: after resolving it, write down what happened, what caused it, how it was fixed, and how to prevent it from recurring. This "post-incident review" prevents the next incident.
Troubleshooting table: symptom > cause > fix
| Symptom | Likely cause | First fix |
|---|---|---|
| The site doesn't open at all | The server is down, or the network | Check the provider's panel, reboot the server |
| 502/504 error | PHP-FPM/the back-end application has failed | systemctl restart php-fpm nginx |
| "No space left on device" | Disk 100% full | df -h, then clean up /var/log and temporary files |
| Severe general slowness | The load is higher than the number of cores | htop to find the greedy process and kill it |
| Slowness with high iowait | The disk is the bottleneck | iostat -x; consider upgrading the disk |
| MySQL keeps crashing | The OOM killer killed the database | dmesg | grep -i oom; add RAM/tune memory |
| A sudden huge traffic spike | DDoS or bot crawling | iftop; enable protection/rate limiting |
| Heavy login attempts | An SSH brute-force attack | Review auth.log, enable Fail2ban |
| An unexpected reboot | OOM, or a kernel update/failure | journalctl -b -1, uptime |
Common monitoring mistakes (and how to avoid them)
- Monitoring without alerts: a beautiful dashboard nobody looks at is useless. Automatic alerting is the essence.
- Relying on internal monitoring alone: as we have repeated, when the server dies, its tools die with it. External monitoring isn't optional.
- Thresholds so strict they flood you with alarms: you get used to ignoring them and miss the real problem. Set them wisely.
- Ignoring trends: problems rarely appear suddenly; they usually build up. A slow upward curve in memory or disk is a valuable early warning.
- Not monitoring inodes: a disk that "has space" may refuse to create files because the inodes have run out. Check
df -ias well. - Leaving monitoring dashboards exposed to the world: netdata/Grafana exposed on a public IP = leaking information to attackers. Always secure them.
- Misunderstanding the load average: reading it as a percentage without comparing it with the number of cores is a classic mistake that leads to wrong decisions.
- Not testing alerts: set up an alert, then make sure it actually reaches you. Discovering a broken alert during a disaster is the worst possible timing.
Expert tips for professional monitoring
- Establish a baseline: know what your server looks like "in its normal state" at peak and quiet times. Anomalies can only be detected by comparison with normal.
- Monitor from the user's perspective: actual page response time matters more than raw CPU numbers. Visitors don't care about your load; they care about speed.
- Bring the metrics together in one dashboard: a Grafana dashboard that combines CPU, memory, disk, network and response time on a single screen cuts diagnosis down to seconds.
- Keep historical data: you can't analyze a trend you don't have data for. Keep months of metrics so you can decide when to upgrade.
- Link monitoring to backups: monitoring detects the disaster, and the backup saves you from it. Both together, or nothing.
- Automate what you can: automatic service restarts, periodic log cleanup and alerts — all of them reduce manual intervention at night.
Frequently asked questions
What is the difference between local and external monitoring, and why do I need both? Local monitoring (htop, netdata) runs inside the server and gives you precise details about its internal resources, but it dies with the server if it goes down. External monitoring (UptimeRobot) runs from outside and detects a complete outage and network and DNS failures, but it can't see internal details. Each covers the other's blind spot, so you need both.
How do I interpret the load average correctly?
Always compare it with your number of cores (nproc). A load of 1.0 on one core = full saturation, but the same number on 4 cores = only 25% utilization. The rule: if the load exceeds the number of cores for a sustained period, there is a queue and slowness. And watch all three numbers (1/5/15 minutes) to see whether the load is rising or falling.
Is high memory usage a problem on Linux?
Not necessarily. Linux deliberately uses free memory for caching and releases it when needed, so high "used memory" is normal. Look at the available column in free -h instead. The real problem starts when available runs out and swap starts being used actively and continuously.
What is the best monitoring tool for a beginner with one server? The simplest and most effective combination: netdata for a real-time dashboard that installs in a minute, htop for quick manual diagnosis, and the free UptimeRobot for monitoring availability from outside. This trio covers most of your needs without the complexity of Prometheus/Grafana.
When do I need Prometheus + Grafana instead of netdata? When you manage more than one server, want to keep historical data for months to analyze trends, or need advanced custom dashboards and alerts. For a single server where you want simplicity, netdata is far more efficient. Prometheus + Grafana is an investment in complexity that pays off at larger scale.
How do I stop logs from filling up the disk?
Enable logrotate (usually enabled by default) to compress and delete old logs periodically, and limit journald's size with SystemMaxUse in /etc/systemd/journald.conf or clean up manually with journalctl --vacuum-time=7d. Add a periodic disk space check via cron that alerts you at 80%, before it reaches 100%.
What does high iowait mean, and how do I fix it?
iowait (shown as wa in top) means the CPU is sitting waiting for the disk instead of working. If it stays high, the disk, not the CPU, is the bottleneck. Diagnose it with iostat -x (watch %util and await), and fix it by upgrading the disk (SSD/NVMe), reducing heavy disk operations, or adding memory to reduce reliance on swap.
How do I set up alerts without drowning in false alarms? Require a duration, not a moment (for example CPU > 80% for five continuous minutes), separate warnings from critical alerts on two different channels, and alert only on things you can act on. Test every alert after setting it up to make sure it arrives, and review your alerts regularly to remove those that are no longer useful.
Do I need monitoring if my hosting is managed? If your hosting is fully managed, the provider monitors the infrastructure. But it is still wise to monitor your site's external availability (UptimeRobot) and your application's own performance, because the provider monitors the server, not necessarily your application. On an unmanaged VPS, monitoring is entirely your responsibility.
How do I monitor several servers from one place?
Use a central system: install node_exporter on each server, have Prometheus collect all their data in one place, and display it in unified Grafana dashboards, with Alertmanager for alerts. A simpler alternative: Netdata Cloud combines several netdata nodes in a single dashboard. And for availability monitoring, add each server/site as a separate monitor in UptimeRobot.
Conclusion
Monitoring isn't a task you complete once and forget; it is an ongoing habit and an operating culture. Start with the basics: install netdata for a real-time dashboard, master the htop, free, df and iostat commands for manual diagnosis, and add the free UptimeRobot to monitor availability from outside. Understand the six metrics and what each one means — especially the load average relative to the number of cores, and the difference between disk space and disk performance. Set up a few precise, actionable alerts, monitor your logs and services, and prepare a clear response plan before you need it. When you do, the equation turns in your favor: you discover problems while you are calm, not under the pressure of customer complaints.
And the logical next step after monitoring is building a server that is set up for monitoring from the start: choose resources that match your expected load, and enable monitoring tools and alerts from day one.
Frequently asked questions
What is the difference between local and external monitoring, and why do I need both?
Local monitoring (htop, netdata) runs inside the server and gives you precise details about its internal resources, but it dies with the server if it goes down. External monitoring (UptimeRobot) runs from outside and detects a complete outage and network and DNS failures, but it can't see internal details. Each covers the other's blind spot, so you need both.
How do I interpret the load average correctly?
Always compare it with your number of cores (nproc). A load of 1.0 on one core = full saturation, but the same number on 4 cores = only 25% utilization. The rule: if the load exceeds the number of cores for a sustained period, there is a queue and slowness. And watch all three numbers (1/5/15 minutes) to see whether the load is rising or falling.
Is high memory usage a problem on Linux?
Not necessarily. Linux deliberately uses free memory for caching and releases it when needed, so high "used memory" is normal. Look at the available column in free -h instead. The real problem starts when available runs out and swap starts being used actively and continuously.
What is the best monitoring tool for a beginner with one server?
The simplest and most effective combination: netdata for a real-time dashboard that installs in a minute, htop for quick manual diagnosis, and the free UptimeRobot for monitoring availability from outside. This trio covers most of your needs without the complexity of Prometheus/Grafana.
When do I need Prometheus + Grafana instead of netdata?
When you manage more than one server, want to keep historical data for months to analyze trends, or need advanced custom dashboards and alerts. For a single server where you want simplicity, netdata is far more efficient. Prometheus + Grafana is an investment in complexity that pays off at larger scale.
How do I stop logs from filling up the disk?
Enable logrotate (usually enabled by default) to compress and delete old logs periodically, and limit journald's size with SystemMaxUse in /etc/systemd/journald.conf or clean up manually with journalctl --vacuum-time=7d. Add a periodic disk space check via cron that alerts you at 80%, before it reaches 100%.
What does high iowait mean, and how do I fix it?
iowait (shown as wa in top) means the CPU is sitting idle waiting for the disk instead of working. If it stays high, the disk, not the CPU, is the bottleneck. Diagnose it with iostat -x (watch %util and await), and fix it by upgrading the disk (SSD/NVMe), reducing heavy disk operations, or adding memory to reduce reliance on swap.
How do I set up alerts without drowning in false alarms?
Require a duration, not a moment (for example CPU > 80% for five continuous minutes), separate warnings from critical alerts on two different channels, and alert only on things you can act on. Test every alert after setting it up to make sure it arrives, and review your alerts regularly to remove those that are no longer useful.
Do I need monitoring if my hosting is managed?
If your hosting is fully managed, the provider monitors the infrastructure. But it is still wise to monitor your site's external availability (UptimeRobot) and your application's own performance, because the provider monitors the server, not necessarily your application. On an unmanaged VPS, monitoring is entirely your responsibility.
How do I monitor several servers from one place?
Use a central system: install node_exporter on each server, have Prometheus collect all their data in one place, and display it in unified Grafana dashboards, with Alertmanager for alerts. A simpler alternative: Netdata Cloud combines several netdata nodes in a single dashboard. And for availability monitoring, add each server/site as a separate monitor in UptimeRobot.