JavaScript must be enabled in order for you to see "WP Copy Data Protect" effect. However, it seems JavaScript is either disabled or not supported by your browser. To see full result of "WP Copy Data Protector", enable JavaScript by changing your browser options, then try again.

在CLI上透過NMON監控整合系統資訊


當做號稱網管的水電工在監控系統,透過HTOP或TOP來檢視的時候,往往感覺好像少了一些東西,啊!對了,我想監控磁碟即時讀寫情況,我想看網路即時的狀況等等,TOP系列好像沒辦法幫得上忙,不過有好心人做出NMON來甲咱倒撒港,可以輕鬆的就可以監控整合的系統資訊,所以廢話不多說,直接用一次就知道了,如下:

1) 透過RPM套件包的方式做下載並安裝安裝NMON(當YUM套件內找不到時,可到這裡來下載)
#wget ftp://rpmfind.net/linux/dag/redhat/el5/en/x86_64/dag/RPMS/nmon-14g-1.el5.rf.x86_64.rpm
--2012-09-09 22:36:55-- ftp://rpmfind.net/linux/dag/redhat/el5/en/x86_64/dag/RPMS/nmon-14g-1.el5.rf.x86_64.rpm
=> `nmon-14g-1.el5.rf.x86_64.rpm'
Resolving rpmfind.net... 195.220.108.108
Connecting to rpmfind.net|195.220.108.108|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /linux/dag/redhat/el5/en/x86_64/dag/RPMS ... done.
==> SIZE nmon-14g-1.el5.rf.x86_64.rpm ... 60709
==> PASV ... done. ==> RETR nmon-14g-1.el5.rf.x86_64.rpm ... done.
Length: 60709 (59K)
100%[============================================================================================>] 60,709 61.0K/s in 1.0s
2012-09-09 22:37:00 (61.0 KB/s) - `nmon-14g-1.el5.rf.x86_64.rpm' saved [60709]
#rpm -ivh nmon-14g-1.el5.rf.x86_64.rpm
warning: nmon-14g-1.el5.rf.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 6b8d79e6
Preparing... ########################################### [100%]
1:nmon ########################################### [100%]

2) NMON使用的說明(按一下即顯示至視窗,再按一次則消失)
h:操作說明
q:離開 nmon
c:CPU即時負載狀況
l:CPU負載長條圖
m:記憶體使用狀況
n:即時網路傳輸量
d:磁碟讀寫狀況(圖)
D:磁碟讀寫狀況(表)
t:類似TOP的程序列表,透過1(Basic)、3(CPU)、4(ResSize)與5(I/O)來選擇排序的依據項目,按u則顯示完整參數
v:簡易系統狀況判別, 依系統狀況顯示OK(正常)、Warning(警告)以及Danger(危險)
r:系統資訊(Kernel)

3) 實際操作的情形(按下c、m、n與d的結果)

◎以上就是透過NMON做監控整合系統資訊的簡易實作,至於其他的部分也可以參考Jamyy的Blog,那兒也有詳細的介紹!累了,收工!

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

 
This site is protected by WP-CopyRightPro