1. View Linux detailed version information
File/sbin/init
2. Download the corresponding Nmon version
http://pkgs.repoforge.org/nmon/
3. Installation
RPM-IVH nmon-14f-1.el5.rf.i386.rpm
4. acquisition of data
1)./nmon_x86_rhel52-s10-c60-f-M.
The-S10 collects data every 10 seconds.
-c60 collected 60 times, that is, the acquisition of 10 minutes of data.
-F generates a data file name that contains the time when the file was created.
The storage directory of the data files generated by-M.
2) Capture data snapshot every 1 seconds, capture 20 times
nmon–f-s 1-c
3) Capture data snapshot every 30 seconds, capture 120 times, contain process information
nmon–ft-s 30-c
This generates a Nmon file and updates every 10 seconds until 10 minutes later.
The generated file name is: Hostname_090824_1306.nmon, "hostname" is the host name of this host.
5. Generate report:
download Nmon Analyser (free tool for generating performance reports):
http://www.ibm.com/developerworks/wikis/display/wikiptype/nmonanalyser
click the "Analyze Nmon Data" button in the Excel file and select the Nmon file, which will generate a parsed result file: hostname_090824_ 1306.nmon.xls, you can see the results by opening the generated file in Excel.
If the macro does not run, you need to do the following:
tools, macro-and security, and then open the file and allow the macro to run.
6. Example 1:
Automatically collect data by day:
Add a record to the crontab:
- 0 0 * * * nmon-s300-c288-f-m/home/>/dev/null 2>&1
300*288=86400 seconds, just a day's data
2) A, execute command: #crontab-E
B. Add the following command on the last line:
- 0 8 * * 1,2,3,4,5/nmon/scriptn/mon_x86_rhel52-f-n-m/nmon/log-s 30-c 1200
- From Monday to Friday, from 08 o'clock in the morning, monitoring 10 hours (until 18:00), output to/nmon/log