Monitoring Linux
Monitoring Linux
Monitoring Linux
Of Linux
licensed under the terms of the GNU Free Documentation License Version 1.3 or later
Monitoring System
of Linux
w - Find Out Who Is Logged on And What They Are Doing .....................................................2
uptime - Tell How Long The System Has Been Running .........................................................2
Monitoring System i
www.FaysalKhan.Org
Overview
If you need to monitor the Linux Machine. You can try these built-in commands and a few add-on
tools. Most Linux distributions are equipped with tons of monitoring. These tools provide metrics
which can be used to get information about system activities. You can use these tools to find the
possible causes of a performance problem. The commands discussed below are some of the
most basic commands when it comes to system analysis and debugging server issues.
Monitoring System 1
www.FaysalKhan.Org
top - Command
The top program provides a dynamic real-time view of a running system i.e. actual process
activity. By default, it displays the most CPU-intensive tasks running on the server and updates
the list every five seconds.
Monitoring System 2
www.FaysalKhan.Org
Monitoring System 3
www.FaysalKhan.Org
Network traffic statistics by protocol
Monitoring System 4
www.FaysalKhan.Org
logged in users, Apache, DNS servers and much more. See how to install and configure Cacti
network graphing tool under CentOS / RHEL.
1. Displays various basic information about the computer's hardware and software.
3. GNOME version
4. Hardware
5. Installed memory
7. System Status
9. Processes
Monitoring System 5
www.FaysalKhan.Org
13. Lists all mounted filesystems along with basic information about each.
Few More;
• nmap - scan your server for open ports.
• ntop web based tool - ntop is the best tool to see network usage in a way similar to what
top command does for processes i.e. it is network traffic monitoring software. You can
see network status, protocol wise distribution of traffic for UDP, TCP, DNS, HTTP and
other protocols.
• Conky - Another good monitoring tool for the X Window System. It is highly configurable
and is able to monitor many system variables including the status of the CPU, memory,
swap space, disk storage, temperatures, processes, network interfaces, battery power,
system messages, e-mail inboxes etc.
• GKrellM - It can be used to monitor the status of CPUs, main memory, hard disks,
network interfaces, local and remote mailboxes, and many other things.
• vnstat - vnStat is a console-based network traffic monitor. It keeps a log of hourly, daily
and monthly network traffic for the selected interface(s).
• htop - htop is an enhanced version of top, the interactive process viewer, which can
display the list of processes in a tree form.
• mtr - mtr combines the functionality of the traceroute and ping programs in a single
network diagnostic tool.
• dstat - which combines vmstat, iostat, ifstat, netstat information and more.
Monitoring System 6