Http://pkgs.repoforge.org/dstat/download the corresponding CPU version:
Http://nmon.sourceforge.net/pmwiki.php? N = site. Download
Wget http://sourceforge.net/projects/nmon/files/download/nmon_x86_12a.zip/download
Unzip nmon_x86_12a.zip
Archive: nmon_x86_12a.zip
Inflating: nmon_x86_rhel45
Inflating: nmon_x86_rhel52
Inflating: nmon_x86_sles9
Inflating: nmon_x86_sles10
Inflating: nmon_x86_ubuntu810
Inflating: nmon_x86_fedora10
Inflating: nmon_x86_opensuse10nmon_x86_centos6
Nmon_x86_64_centos6
Use the corresponding operating system file:
Chmod + x nmon_x86_ubuntu810
MV nmon_x86_ubuntu810/usr/local/bin/nmon
Perform the following operations for Debian ):
Apt-Get install LSB-release
Lsb_release-d | SED's/Description: \ t // '>/etc/debian_release
Run nmon directly.
Collect data and generate reports:
Data collection:
Nmon-S10-16A-F-M/home/
Parameter description:
-S10 collects data every 10 seconds.
-60 records are collected for 60 times, that is, 10 minutes of data are collected.
-F: The generated data file name contains the time when the file was created.
-M: directory where data files are stored.
In this way, a nmon file is generated and updated every 10 seconds until 10 minutes later.
The generated file name is hostname_0901__1306.nmon. "hostname" indicates the host name.
Generate Reports:
Download nmon analyser (a free tool for generating performance reports ):
Http://www.ibm.com/developerworks/wikis/display/Wikiptype/nmonanalyser
Upload the previously generated nmon data file to a Windows machine and use Excel to open the analysis tool nmon analyser v33c.xls. Click the "analyze nmon data" button in the Excel file and select the nmon data file to generate an analysis result file: hostname_0901__1306.nmon.xls, open the generated file in Excel and you will see the result.
If the macro cannot run, perform the following operations:
Tool-> macro-> Security->, and then open the file and allow the macro to run.
Automatic data collection by day:
Add a record to crontab:
0 0 *** root nmon-s300-c288-F-M/home/>/dev/null 2> & 1
300*288 = 86400 seconds, which is exactly the data of one day.
References:
Nmon for Linux:
Http://nmon.sourceforge.net/pmwiki.php
Nmon performance: a free tool for analyzing AIX and Linux performance:
Http://www.ibm.com/developerworks/cn/aix/library/analyze_aix/index.html
Nmon analyser-a free tool for generating AIX performance reports:
Http://www.ibm.com/developerworks/cn/aix/library/nmon_analyser/index.html
From: http://bluedata.org/2009/08/31/linux-nmon/