linux網絡流量實時監控工具之nload

linux網絡流量實時監控工具之nloadhtml

[個人Linux,讓Linux更易用]我的以爲nload是個很好用的一個工具,功能也很強.只是相對單一,只能查看總的流量,不能像iptraf那樣,可針對IP,協議等
能夠實時地監控網卡的流量,分Incoming,Outgoing兩部分,也就是流入與流出的流量
同時統計當前,平均,最小,最大,總流量的值,令人看了一目瞭然,以下圖linux

官網及下載 http://www.roland-riegel.de/nload/index.html
http://www.roland-riegel.de/nload/nload-0.7.2.tar.gzweb

http://dl.wdlinux.cn:5180/soft/nload-0.7.2.tar.gzredis

安裝
wget http://www.roland-riegel.de/nload/nload-0.7.2.tar.gz
tar zxvf nload-0.7.2.tar.gz
cd nload-0.7.2
./configure;make;make install性能優化

使用
直接用nload回車便可,也能夠指定網卡,如nload eth1
還能夠指定是以K或M來顯示流量,如nload -u M顯示的流量是以MB爲單位的網絡

看看還有哪些參數或選項
[root@wdlinux ~]# nload -h負載均衡

nload version 0.7.2
Copyright (C) 2001 - 2008 by Roland Riegel
nload comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
welcome to redistribute it under certain conditions. For more details see the
GNU General Public License Version 2 (http://www.gnu.org/copyleft/gpl.html).工具

Command line syntax:
nload [options] [devices]
nload --help|-h性能

 

Options:
-a period Sets the length in seconds of the time window for average
calculation.
Default is 300.
-i max_scaling Specifies the 100% mark in kBit/s of the graph indicating the
incoming bandwidth usage. Ignored if max_scaling is 0 or the
switch -m is given.
Default is 10240.
-m Show multiple devices at a time; no traffic graphs.
-o max_scaling Same as -i but for the graph indicating the outgoing bandwidth
usage.
Default is 10240.
-t interval Determines the refresh interval of the display in milliseconds.
Default is 500.
-u h|b|k|m|g Sets the type of unit used for the display of traffic numbers.
H|B|K|M|G h: auto, b: Bit/s, k: kBit/s, m: MBit/s etc.
H: auto, B: Byte/s, K: kByte/s, M: MByte/s etc.
Default is h.
-U h|b|k|m|g Same as -u, but for a total amount of data (without "/s").
H|B|K|M|G Default is H.
devices Network devices to use.
Default is to use all auto-detected devices.
--help
-h Print this help.優化

example: nload -t 200 -i 1024 -o 128 -U M

 

FAQ
如安裝時提示下面的問題
configure: error: ncurses library or development files not found. ncurses is required for nload.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.

 

用 yum install -y ncurses-devel 便可解決

歡迎轉載,但請保留此信息
[個人Linux,讓Linux更易用] CentOS定製自動安裝版,lamp,lnmp自動安裝腳本,集羣負載均衡LVS,性能優化,ispconfig,webmin
本文鏈接:http://www.wdlinux.cn/nload

相關文章
相關標籤/搜索