Linux System Monitoring basic commands

19
GNU/Linux Monitoring Tools

description

Operating systems control our hardware and run our applications on them, how can we monitor linux operating system? When we speak about monitoring it's the matter of all hardwares and users. The slides below will describe the very common command line basic tools for monitoring.

Transcript of Linux System Monitoring basic commands

Page 1: Linux System Monitoring basic commands

GNU/Linux Monitoring Tools

Page 2: Linux System Monitoring basic commands

2

Operating systems control our hardware and run our applications on

them, how can we monitor linux operating system?

Page 3: Linux System Monitoring basic commands

3

When we speak about monitoring it's the matter of all hardwares and users.

users

CPU

MemoryStorage

Ethernet

Page 4: Linux System Monitoring basic commands

4

The slides below will describe the very common command line basic

tools for monitoring.

Page 5: Linux System Monitoring basic commands

5

ps Command

The ps will provide you a list of processes

currently running. There is a wide variety of

options that thiscommand gives you.

Page 6: Linux System Monitoring basic commands

6

pstree Command

This command will give you a hierarchy of

current processes of the CPU regarding to their

parent process.

Page 7: Linux System Monitoring basic commands

7

top Command

The most common of Monitoring commands is top. The top will display a continually updating

report of systemresource usage.

Page 8: Linux System Monitoring basic commands

8

tcpdump Command

Tcpdump one of the most widely used command-line network packet analyzer or packets sniffer program that is used capture or filter TCP/IP packets that

received or transferred on a specific interface over a network.

Page 9: Linux System Monitoring basic commands

9

vmstat Command

The vmstat command will provide a report showing statistics for system processes, memory, swap, I/O, andthe CPU. These statistics are generated using data from

the last time the command was run to the present.

Page 10: Linux System Monitoring basic commands

10

iftop Command

iftop listens to network traffic on a named interface, or on the first interface it can find which looks like an external

interface if none is specified, and displays a table of current bandwidth usage by pairs of hosts.

Page 11: Linux System Monitoring basic commands

11

iostat Command

The iostat will display the current CPU load average and disk I/O information. This is a great command to monitor your disk I/O

usage.

Page 12: Linux System Monitoring basic commands

12

lsof Command

The lsof command will print out a list of every file that is in

use.

Page 13: Linux System Monitoring basic commands

13

du Command

To view usage by a directory or file you can

use du. Unless you specify a filename du

will act recursively.

Page 14: Linux System Monitoring basic commands

14

netstat Command

Netstat is a command line tool for monitoring incoming

and outgoing network packets statistics as well as interface statistics. It is very useful tool for every system

administrator to monitor network performance and

troubleshoot network related problems.

Page 15: Linux System Monitoring basic commands

15

df Command

The df is the simplest tool available to view disk usage. Simply type in df and you'll be shown disk usage for all

your mounted filesystems in 1K blocks

Page 16: Linux System Monitoring basic commands

16

iotop Command

iotop is also much similar to top command and Htop

program, but it has accounting function to

monitor and display real time Disk I/O and processes. This

tool is much useful for finding the exact process

and high used disk read/writes of the processes.

Page 17: Linux System Monitoring basic commands

17

who Command

The easiest way to see who is on the system is to

do a who or w.

Page 18: Linux System Monitoring basic commands

18

It is important that what is going on around us.

Finish

http://linux.org

http://gnu.org

http://xamin.ir

Page 19: Linux System Monitoring basic commands

19

● [1] http://tldp.org - The Linux System Administrator's Guide

● [2] http://www.tecmint.com/command-line-tools-to-monitor-linux-performance/

● [3] http://www.cyberciti.biz/tips/top-linux-monitoring-tools.html/top-output

References