0Pricing
Linux Server Deployment & SSH Mastery · Lesson

System Monitoring Tools

Explore advanced monitoring tools like `glances`, `nmon`, and `sar` for comprehensive real-time and historical server performance data.

System Monitoring Tools is a free Linux Server Deployment & SSH Mastery lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Linux Server Deployment & SSH Mastery learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Why Monitor Your Server?

Running a server means you need to know how it's performing. Is the CPU overloaded? Is memory running low? Is the network busy?

  • Monitoring helps you catch issues before they become critical.
  • It provides insights for optimization and capacity planning.
  • It's essential for maintaining a healthy and responsive server.

Beyond Basic Tools

You might already know basic tools like top and htop for quick real-time checks. They're great for a snapshot!

But for deeper insights, historical data, or a more comprehensive overview, we need specialized tools. Let's explore some powerful monitoring utilities.

Glances: All-in-One Dashboard

Glances is a cross-platform curses-based monitoring tool that displays a lot of information in a single, well-organized screen.

  • It shows CPU, memory, disk I/O, network I/O, processes, and more.
  • It's highly customizable and easy to read.
  • Think of it as an interactive, real-time dashboard for your server.

Get Glances on Your Server

Installing glances is usually straightforward on most Linux distributions. For Debian/Ubuntu-based systems, you can use apt:

sudo apt update
sudo apt install glances

Launching Glances

Once installed, simply type glances in your terminal to launch it. You'll see an interactive, color-coded display of your system's health.

Press q to quit. Explore the different sections like CPU usage, memory, network activity, and top processes.

glances

Nmon: Deep Dive Performance

nmon (Nigel's Monitor) is a powerful tool for performance monitoring and analysis. It's especially good for capturing data over time.

  • It offers a wide range of system statistics in a compact format.
  • You can view CPU, memory, disk I/O, network, kernel, and more.
  • nmon can also save data to a file for later analysis.

Installing Nmon

Similar to glances, nmon is available in most distribution repositories. For Debian/Ubuntu:

sudo apt update
sudo apt install nmon

Exploring with Nmon

Run nmon to enter its interactive mode. Use single keys to toggle different views:

  • c for CPU statistics
  • m for Memory statistics
  • d for Disk I/O
  • n for Network I/O

Press q to exit.

nmon

Sar: System Activity Reporter

sar (System Activity Reporter) is part of the sysstat package. Unlike glances or nmon, sar is designed for collecting, reporting, and saving system activity information.

  • It's excellent for historical analysis and trend identification.
  • You can check past CPU, memory, disk, and network usage.
  • It helps diagnose intermittent issues by looking at data over long periods.

Sar in Action: CPU & Memory

sar can show various metrics. Here are a couple of common uses:

  • To report CPU activity every 1 second, 3 times:
sar 1 3

Quick Check: Monitoring Tools

You've learned about glances, nmon, and sar. Each has its strengths.

Which tool is best suited for viewing a comprehensive, interactive, real-time dashboard of your server's performance, showing CPU, memory, and network at a glance?

Recap: Keeping an Eye on Your Server

Great job! You've explored three powerful Linux monitoring tools:

  • Glances: Your real-time, interactive system dashboard.
  • Nmon: For detailed, interactive performance analysis and data capture.
  • Sar: Essential for collecting and reporting historical system activity data.

These tools are invaluable for understanding and maintaining server health. Keep practicing!

Frequently asked questions

Is the “System Monitoring Tools” lesson free?

Yes — the full text of “System Monitoring Tools” is free to read here on the web, and the Linux Server Deployment & SSH Mastery course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Linux Server Deployment & SSH Mastery course, upgrade to CoddyKit PRO.

What will I learn in “System Monitoring Tools”?

Explore advanced monitoring tools like `glances`, `nmon`, and `sar` for comprehensive real-time and historical server performance data. You practise Linux Server Deployment & SSH Mastery with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Linux Server Deployment & SSH Mastery?

No prior experience is required. Linux Server Deployment & SSH Mastery on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “System Monitoring Tools” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Linux Server Deployment & SSH Mastery lesson?

Yes. Every Linux Server Deployment & SSH Mastery lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. System Monitoring Tools
  2. Understanding System Logs
  3. Log Rotation and Archiving
  4. Centralized Monitoring and Alerting
← Back to Linux Server Deployment & SSH Mastery