昨天晚上第一次翻譯了《20 Command Line Tools to Monitor Linux Performance》中的前十個命令,翻譯得不是很好,今天晚上繼續把后面的十個也翻譯給大家吧,第一次寫博客,寫的不是特別的好,希望大家不要介意,也希望大家覺得有什么不對的地方能夠多多指教,畢竟小弟還是初學者。下面我們開始學習下面十個命令吧!
11,Monit –- Linux Process and Services Monitoring
Monit 是一個免費開源並且基於web的進程監督實用程序,自動監控和管理系統進程,應用程序,文件,目錄,權限,校驗和和文件系統。
它監視的服務有 Apache, MySQL, Mail, FTP, ProFTP, Nginx, SSH 等等。系統狀態能被瀏覽通過命令行或者使用Monit 自己的用戶界面。
想要了解Monit的更多的命令請參考Linux Process Monitoring with Monit 。
12,NetHogs –- Monitor Per Process Network Bandwidth
NetHogs is 是一個類似於top命令的開源的更好的更小的程序,它能夠監視系統上的任何一個活動網絡進程。它也能夠記錄實時網絡流量帶寬使用的每個程序或應用程序。
想要了解該命令的更多用法請參考Monitor Linux Network Bandwidth Using NetHogs 。
13,iftop -- Network Bandwidth Monitoring
iftop 是另一個基於終端的免費開源的系統監控實用工具。它通過系統連接的網絡接口來顯示頻繁更新的網絡(源主機到目的主機)帶寬利用率。 iftop 被用作監視網絡使用率,而‘top‘則被用來監視cpu的使用率。 iftop工具被用來監視被選擇的網絡接口並且顯示兩個主機之間的網絡帶寬使用情況。具體用法如下
該命令的更多使用方法請參考iftop – Monitor Network Bandwidth Utilization 。
14,Monitorix -- System and Network Monitoring
Monitorix is 是一個免費的輕量級的實用工具,它主要被設計用來運行和監視系統和網絡資源盡可能多的運用在Linux/Unix服務器上。它有一個內置的web服務器能夠定期的收集系統和網絡的信息並且通過圖像顯示它們。 它監視 system load average and usage, memory allocation(內存分配), disk driver health(磁盤驅動的健康狀態), system services(系統服務), network ports(網絡端口), mail statistics (Sendmail, Postfix, Dovecot, etc)郵件統計, MySQL statistics (mysql統計)等等. 它旨在監控系統整體性能和有助於檢測失敗,瓶頸,異常活動等.
了解該命令的更多使用方法請參考:Monitorix a System and Network Monitoring Tool for Linux 。
15,Arpwatch -- Ethernet Activity Monitor
Arpwatch is 是一種被設計用來監視以太網的地址解析(MAC and IP address changes)的程序。 它持續保持監視以太網流量和產生一個IP和MAC地址對變化的以及網絡上的時間戳的日志。當有一個地址對發生變化時它通過發送一個電子郵件界面告示管理員。它是非常的有用對於檢查網絡中ARP 攻擊。
# arpwatch -i eth0
# tail -f /var/log/messageseth0
Apr 15 12:45:17 tecmint arpwatch: new station 172.16.16.64 d0:67:e5:c:9:67 Apr 15 12:45:19 tecmint arpwatch: new station 172.16.25.86 0:d0:b7:23:72:45 Apr 15 12:45:19 tecmint arpwatch: new station 172.16.25.86 0:d0:b7:23:72:45 Apr 15 12:45:19 tecmint arpwatch: new station 172.16.25.86 0:d0:b7:23:72:45 Apr 15 12:45:19 tecmint arpwatch: new station 172.16.25.86 0:d0:b7:23:72:45
想要了解更多該命令的使用方法請參考:Arpwatch to Monitor Ethernet Activity
16,Suricata --Network Security Monitoring
Suricata 是一個高性能的開源網絡安全和入侵檢測和預防監測系統, FreeBSD 和 Windows.它由一個非盈利基金會OISF設計和使用。
# suricata -c /etc/suricata/suricata.yaml -i eth0
23/7/2013 -- 12:22:45 - - This is Suricata version 1.4.4 RELEASE 23/7/2013 -- 12:22:45 - - CPUs/cores online: 2 23/7/2013 -- 12:22:45 - - Found an MTU of 1500 for 'eth0' 23/7/2013 -- 12:22:45 - - allocated 2097152 bytes of memory for the defrag hash... 65536 buckets of size 32 23/7/2013 -- 12:22:45 - - preallocated 65535 defrag trackers of size 104 23/7/2013 -- 12:22:45 - - defrag memory usage: 8912792 bytes, maximum: 33554432 23/7/2013 -- 12:22:45 - - AutoFP mode using default "Active Packets" flow load balancer 23/7/2013 -- 12:22:45 - - preallocated 1024 packets. Total memory 3170304 23/7/2013 -- 12:22:45 - - allocated 131072 bytes of memory for the host hash... 4096 buckets of size 32 23/7/2013 -- 12:22:45 - - preallocated 1000 hosts of size 76 23/7/2013 -- 12:22:45 - - host memory usage: 207072 bytes, maximum: 16777216 23/7/2013 -- 12:22:45 - - allocated 2097152 bytes of memory for the flow hash... 65536 buckets of size 32 23/7/2013 -- 12:22:45 - - preallocated 10000 flows of size 176 23/7/2013 -- 12:22:45 - - flow memory usage: 3857152 bytes, maximum: 33554432 23/7/2013 -- 12:22:45 - - IP reputation disabled 23/7/2013 -- 12:22:45 - - using magic-file /usr/share/file/magic
了解該命令的更多使用方法請參考:Suricata – A Network Intrusion Detection and Prevention System。
17,VnStat PHP – Monitoring Network Bandwidth
VnStat PHP 一個基於web的前端應用程序最受歡迎的網絡工具叫 “vnstat“. VnStat PHP 使用漂亮的圖形界面監控網絡流量. 它顯示了發送和接收的網絡流量使用率在每小時,每周,每月的統計報告中。
該命令的更多用法參考:VnStat PHP – Monitoring Network Bandwidth 。
18,Nagios -- Network/Server Monitoring
Nagios是一個領先的開源強大的監控系統,讓網絡/系統管理員識別並解決服務器相關問題在影響主要業務流程之前。通過Nagios系統, 管理員能夠遠程監控系統,交換機,路由器和打印機通過單一的窗口。 它顯示關鍵的警告和指示如果運行錯誤在你的網絡/服務器,它能夠間接地幫助你開始補救之前發生的錯誤。
具體使用方法請參考:: Install Nagios Monitoring System to Monitor Remote Linux/Windows Hosts 。
19, Nmon --Monitor Linux Performance
Nmon (stands for Nigel’s performance Monitor) 代表奈傑爾性能監視器工具, 它被用來見識Linux資源例如 CPU, Memory, Disk Usage, Network, Top processes, NFS, Kernel 等等. 這個工具帶有兩種模式: Online Mode(在線模式) 和 Capture(捕獲模式) Mode.
在線模式,被用來實時監控。抓包模式,被用來存儲那個包到格式為csv的文件中。
更多命令請參考:Install Nmon (Performance Monitoring) Tool in Linux 。
20,Collectl -- All-in-One Performance Monitoring Tool
Collectl is也是另外一個強大並且基於的豐富的命令行界面的實用工具。它能用來搜集linux的系統信息例如CPU usage(cpu使用率), memory(內存), network(網絡), inodes(節點), processes(進程), nfs, tcp, sockets 等等.
更多命令參考:Install Collectl (All-in-One Performance Monitoring) Tool in Linux 。
前十個命令行工具請看前一篇文章《20個linux命令行工具監視性能(上)》 。
終於翻譯完了20個linux命令行工具監視性能。也讓我體會到了學習英語的重要性。本人的英語水平有限,有什么錯誤的地方還望大家多多指教。