IBM系统监控工具nmon使用说明

nmon工具是IBM提供的免费的监控系统资源的工具。该工具可将服务器的系统资源耗用情况收集起来并输出一个特定的文件,并可利用excel分析工具进行数据的统计分析。下载地址如下:

nmon:?n=Site.Download

nmonanalyser

help:?n=Site.Documentation

注意:nmon不是必须非要root用户才能够运行的。

安装配置:

下载的时候注意对应的操作系统,下载下来是一个二进制文件,上传到服务器后直接就可以使用,但是要注意权限问题。

[root@linux ~]# cd /u01/app/   [root@linux app]# ll   总计 12   drwxr-xr-x 9 Oracle oinstall 4096 12-12 21:48 oracle   drwxrwx--- 5 oracle oinstall 4096 12-12 21:39 oraInventory    drwxr-xr-x 7   1003 dba      4096 12-13 05:09 osw   [root@linux app]# mkdir nmon   [root@linux app]# ll   总计 16   drwxr-xr-x 2 root   root     4096 12-13 16:20 nmon   drwxr-xr-x 9 oracle oinstall 4096 12-12 21:48 oracle   drwxrwx--- 5 oracle oinstall 4096 12-12 21:39 oraInventory    drwxr-xr-x 7   1003 dba      4096 12-13 05:09 osw   [root@linux app]# cd nmon/   [root@linux nmon]# ll   总计 184   -rw-r--r-- 1 root root 184266 12-13 16:20 nmon_x86_rhel54    [root@linux nmon]# chmod 777 nmon_x86_rhel54    [root@linux nmon]# ll   总计 184   -rwxrwxrwx 1 root root 184266 12-13 16:20 nmon_x86_rhel54   [root@linux nmon]# mv nmon_x86_rhel54 nmon.sh   [root@linux nmon]# ll   总计 184   -rwxrwxrwx 1 root root 184266 12-13 16:20 nmon.sh  

在服务器监控:

[root@linux ~]# cd /u01/app/nmon/   [root@linux nmon]# ll   总计 184   -rwxrwxrwx 1 root root 184266 12-13 16:20 nmon.sh   [root@linux nmon]# ./nmon.sh   

然后就进入如下界面:

+nmon-14g---------------------Hostname=linux--------Refresh= 2secs ---21:18.04-----------------------------------------------------------------------------------------------------------------+    |                                                                                                                                                                                              |   |  ------------------------------       For help type H or ...                                                                                                                                 |    |  #    #  #    #   ####   #    #        nmon -?  - hint                                                                                                                                       |   |  ##   #  ##  ##  #    #  ##   #        nmon -h  - full                                                                                                                                       |   |  # #  #  # ## #  #    #  # #  #                                                                                                                                                              |   |  #  # #  #    #  #    #  #  # #       To start the same way every time                                                                                                                       |   |  #   ##  #    #  #    #  #   ##        set the NMON ksh variable                                                                                                                             |   |  #    #  #    #   ####   #    #                                                                                                                                                              |   |  ------------------------------                                                                                                                                                              |    |                                                                                                                                                                                              |   |  Use these keys to toggle statistics on/off:                                                                                                                                                 |   |     c = CPU        l = CPU Long-term   - = Faster screen updates                                                                                                                             |   |     m = Memory     j = Filesystems     + = Slower screen updates                                                                                                                             |   |     d = Disks      n = Network         V = Virtual Memory                                                                                                                                    |   |     r = Resource   N = NFS             v = Verbose hints                                                                                                                                     |   |     k = kernel     t = Top-processes   . = only busy disks/procs                                                                                                                             |   |     h = more options                   q = Quit                                                                                                                                              |   |----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|  

上面所讲的只是在服务器监控,我们真正需要的是如何收集这些数据并处理分析他们。nmon提供了一个nmon_analyser的分析工具,可以利用excel进行统计结果的分析。


输出文件:

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:http://www.heiqu.com/032d5acd79c3eadf2dcffbb5b2ec207c.html