Table of Contents
Ever had your Linux machine slow to a crawl and wondered, “What’s eating my resources?” That’s where monitoring tools come in. They’re your dashboard, your early warning system, and your troubleshooting sidekick-all rolled into one. Whether you’re running a single laptop or a fleet of cloud servers, knowing what’s happening under the hood helps you catch issues before they turn into headaches.
Linux gives you a toolbox right out of the gate. Here are a few classics:
top: Real-time view of processes, CPU, and memory
top
htop: Like top, but with colors, mouse support, and an easier interface
htop
free: Quick snapshot of memory usage
free -h
df: Disk space usage for all mounted filesystems
df -h
du: Disk usage for directories and files
du -sh /var/log
vmstat: Virtual memory stats, handy for spotting bottlenecks
vmstat 2
ss/netstat: Check open ports and network connections
ss -tuln
These tools are perfect for quick checks and basic troubleshooting
Ready to level up? Try these:
nmon: A dashboard for everything-CPU, memory, disks, network, and more
sudo apt install nmon
nmon
Toggle views with single keys (‘c’ for CPU, ‘m’ for memory, etc.).
Glances: All-in-one monitor with a web interface and export options
sudo apt install glances
glances
Need remote access?
glances -w
iotop: See which processes are hitting your disks the hardest
iftop/nethogs: Real-time network traffic monitoring, broken down by process
Web-Based and Enterprise Solutions
If you’re managing multiple servers or want dashboards and alerts, check out these heavy hitters:
Nagios: The classic. Monitor hosts, services, and get alerts when
things go sidewaysZabbix: Powerful, scalable, and great for visualizing trends
Prometheus + Grafana: Modern, cloud-friendly, and perfect for
custom dashboardsSigNoz: Open-source APM with metrics, logs, and traces in one
placeCheckmk, Datadog, Centreon: Each brings something unique, from deep
integrations to slick dashboards
Most of these tools have web interfaces, alerting, and plugins for just about anything you want to monitor
With the right tools, you’ll go from “What’s wrong?” to “Here’s the fix!” in no time
Real-Life Example: Troubleshooting a Slow Server
Let’s say your web server is sluggish. Here’s a quick workflow:
- Run htop or glances to spot CPU or memory hogs
- Use iotop to check for disk-heavy processes
- Check df -h for full disks
- Fire up iftop or ss to see if network traffic is spiking
- For long-term trends, set up Grafana on Prometheus and build a dashboard
Linux monitoring doesn’t have to be overwhelming.
Start with the built-in basics, then explore advanced tools as your needs grow.
Whether you’re keeping your laptop healthy or running mission-critical servers, these tools help you stay ahead of trouble-and keep your systems running smooth.
Happy monitoring!
If you want more examples or help setting up a dashboard, just ask.
Top comments (0)