Linux Monitoring Tools for SysAdmin



Oke all..

now will share about Linux monitoring tools.
if you wanna be sysadmin you must read this article :P
Cz this is important for server administrator.

Oke lets begin :

[#] Top command

this is command to find out Linux cpu load

~ top

this command is have keys/Hotkeys to optimalization too.
t Displays summary information off and on.
m Displays memory information off and on.
A Sorts the display by top consumers of various system resources. Useful for quick identification of performance-hungry tasks on a system.
f Enters an interactive configuration screen for top. Helpful for setting up top for a specific task.
o Enables you to interactively select the ordering within top.
r Issues renice command.
k Issues kill command.
z Turn on or off color/mono

[#] vmstat 

this is reports information about processes,memory, paging, block IO, traps, and cpu activity.

~vmstat

-m = Display memeory Utilization Slabinfo
-a = Get Information About Active / Inactive Memory Pages

[#] ' w ' command

this is for find who has been log in into your system

~ w username
example : w r007

[#] uptime

we can know How long time Our system is running with this.

~ uptime

simple output:
21:40:29 up  5:05,  2 users,  load average: 0.13, 0.16, 0.32

[#] ps for taskmanager

ps command is for monitoring the running service

~ ps -A

important HotKeys :
ps -U r007 -u r007 u = See Every Process Running As User r007
ps ax = Print All Process On The Server
ps -eM = Print Security Information
ps -C lighttpd -o pid= : Display Only The Process IDs of Lighttpd

[#] free

Show the free memory

~ free

example output :
             total       used       free     shared    buffers     cached
Mem:       1920752    1771592     149160          0      26000     608932
-/+ buffers/cache:    1136660     784092
Swap:      5117948     170096    4947852

[#] netstat
The command netstat displays network connections, routing tables, interface statistics, masquerade connections, and multicast memberships

~ netstat -h
* for Helping

[#] ss
ss command is used to dump socket statistics.

~ ss -s 

HotKeys :
ss -l = Display All Open Network Ports
ss -pl =  to see process named using open socket
ss -t -a = Display All sockets
ss -u -a = Display All UDP Sockets
ss -o state established '( dport = :http or sport = :http )' = Display All Established HTTP Connections


[#] iptraf
Show Real-time Network Statistics and colorful IP LAN monitor

~ sudo apt-get install iptraf
~ iptraf

* This is usefull tools for LAN and interactive colour

[#] tcpdump

simple command that dump traffic on a network. and you must know good about TCP/IP protocol.

~ tcpdump -i eth0 'udp port 53'

*Use wireshark and you get detailed 

[#] strace

Trace the Process and See What It is Doing.this is debuging process.

~ strace -p 22254 -s 80 -o /tmp/debug.lighttpd.txt

-p = process PID
-s = Specify the maximum string size to print (the default is 32)
-o = file outut
*for all command = man strace

[#] Cacti - Web-based Monitoring Tool

this is Web-based and easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices. It can provide data about network, CPU, memory, logged in users, Apache, DNS servers etc..

~ see Next Post for cacti

Thakz for reading..
ref : cybercity.biz
./logout

Title : Linux Monitoring Tools for SysAdmin
Description : Oke all.. now will share about Linux monitoring tools. if you wanna be sysadmin you must read this article :P Cz this is important f...

0 Response to "Linux Monitoring Tools for SysAdmin"

Post a Comment