{"id":975,"date":"2018-01-11T15:27:02","date_gmt":"2018-01-11T14:27:02","guid":{"rendered":"http:\/\/ndk.sytes.net\/wordpress\/?p=975"},"modified":"2018-01-11T16:50:52","modified_gmt":"2018-01-11T15:50:52","slug":"essential-linux-unix-monitor-tools","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=975","title":{"rendered":"Essential Linux\/Unix monitor tools"},"content":{"rendered":"<p>\n\t<strong>TOP<\/strong>\n<\/p>\n<p>\n\tThe&nbsp;top&nbsp;program provides a dynamic real-time view of a running system. It can display&nbsp;system&nbsp;summary information as well as a list of&nbsp;tasks&nbsp;currently being managed by the Linux kernel. The types of system summary information shown and the types, order and size of information displayed for tasks are all user configurable and that configuration can be made persistent across restarts.\n<\/p>\n<p>\n\t<strong>HTOP<\/strong>\n<\/p>\n<p>\n\thtop&nbsp;is an interactive&nbsp;system-monitor&nbsp;process-viewer and process-manager. It is designed as an alternative to the Unix program&nbsp;top. It shows a frequently updated list of the processes running on a computer, normally ordered by the amount of CPU usage. Unlike&nbsp;top, htop provides a full list of processes running, instead of the top resource-consuming processes. Htop uses color and gives visual information about&nbsp;processor,&nbsp;swap&nbsp;and&nbsp;memory&nbsp;status.\n<\/p>\n<p>\n\t<strong>IOTOP<\/strong> (Linux only, top on BSD has this included)\n<\/p>\n<p>\n\tiotop watches I\/O usage information output by the Linux kernel (requires 2.6.20 or later) and displays a table of current I\/O usage by processes or threads on the system.\n<\/p>\n<p>\n\t<strong>IFTOP<\/strong>\n<\/p>\n<p>\n\tiftop&nbsp;listens to network traffic on a named&nbsp;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.&nbsp;iftop&nbsp;must be run with sufficient permissions to monitor all network traffic on the&nbsp;interface; see&nbsp;<a href=\"https:\/\/linux.die.net\/man\/3\/pcap\">pcap<\/a>(3) for more information, but on most systems this means that it must be run as root.\n<\/p>\n<p>\n\t<strong>GLANCES<\/strong>\n<\/p>\n<p>\n\tGlances&nbsp;is a free (LGPL) curses-based monitoring tool which aims to present a maximum of information in a minimum of space, ideally to fit in a classical 80&#215;24 terminal.&nbsp;Glances&nbsp;can adapt dynamicaly the displayed information depending on the terminal size.\n<\/p>\n<p>\n\t<strong>NLOAD<\/strong>\n<\/p>\n<p>\n\tnload&nbsp;is a console application which monitors network traffic and bandwidth usage in real time. It visualizes the in- and outgoing traffic using two graphs and provides additional info like the total amount of transfered data and min\/max network usage.\n<\/p>\n<p>\n\t<strong>NCDU<\/strong>\n<\/p>\n<p>\n\tncdu&nbsp;(NCurses Disk Usage) is a curses-based version of the well-known &#39;du&#39;, and provides a fast way to see what directories are using your disk space.\n<\/p>\n<p>\n\t<strong>IPTRAF<\/strong> (Linux only)\n<\/p>\n<p>\n\tiptraf&nbsp;is an ncurses-based IP LAN monitor that generates various network statistics including TCP info, UDP counts, ICMP and OSPF information, Ethernet load info, node stats, IP checksum errors, and others.\n<\/p>\n<p>\n\t<strong>LFTP<\/strong>\n<\/p>\n<p>\n\tlftp&nbsp;is a file transfer program that allows sophisticated ftp, http and other connections to other hosts. If&nbsp;siteis specified then&nbsp;lftp&nbsp;will connect to that site otherwise a connection has to be established with the open command.\n<\/p>\n<p>\n\tlftp&nbsp;can handle several file access methods &#8211; ftp, ftps, http, https, hftp, fish, sftp and file (https and ftps are only available when&nbsp;lftp&nbsp;is compiled with GNU TLS or OpenSSL library). You can specify the method to use in &#39;open URL&#39; command, e.g. &#39;open http:\/\/www.us.kernel.org\/pub\/linux&#39;. hftp is ftp-over-http-proxy protocol. It can be used automatically instead of ftp if ftp:proxy is set to &#39;http:\/\/proxy[:port]&#39;. Fish is a protocol working over an ssh connection to a unix account. SFtp is a protocol implemented in ssh2 as sftp subsystem.\n<\/p>\n<p>\n\t<strong>TCPDUMP<\/strong>\n<\/p>\n<p>\n\tTcpdump&nbsp;prints out a description of the contents of packets on a network interface that match the boolean&nbsp;expression. It can also be run with the&nbsp;-w&nbsp;flag, which causes it to save the packet data to a file for later analysis, and\/or with the&nbsp;-r&nbsp;flag, which causes it to read from a saved packet file rather than to read packets from a network interface. In all cases, only packets that match&nbsp;expression&nbsp;will be processed by&nbsp;tcpdump.\n<\/p>\n<p>\n\t<strong>NETSTAT<\/strong>\n<\/p>\n<p>\n\tPrint network connections, routing tables, interface statistics, masquerade connections, and multicast memberships\n<\/p>\n<p>\n\t<strong>LSOF<\/strong>\n<\/p>\n<p>\n\tLsof&nbsp;lists on its standard output file information about files opened by processes&nbsp;\n<\/p>\n<p>\n\t<strong>W<\/strong>\n<\/p>\n<p>\n\tw&nbsp;displays information about the users currently on the machine, and their processes. The header shows, in this order, the current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes.\n<\/p>\n<p>\n\t<strong>NETHOGS<\/strong>\n<\/p>\n<p>\n\tNetHogs&nbsp;is an open source command line program (similar to Linux&nbsp;top&nbsp;command) that is used for monitor real time network traffic bandwidth used by each process or application.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TOP The&nbsp;top&nbsp;program provides a dynamic real-time view of a running system. It can display&nbsp;system&nbsp;summary information as well as a list of&nbsp;tasks&nbsp;currently being managed by the Linux kernel. The types of system summary information shown and the types, order and size of information displayed for tasks are all user configurable and that configuration can be made [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,10,7],"tags":[],"class_list":["post-975","post","type-post","status-publish","format-standard","hentry","category-linuxunix","category-mac-osx","category-servers"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=975"}],"version-history":[{"count":2,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/975\/revisions"}],"predecessor-version":[{"id":977,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/975\/revisions\/977"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}