1. View Linux specific version number information
File/sbin/init
2. Download the corresponding Nmon version number
http://pkgs.repoforge.org/nmon/
3. Installation
RPM-IVH nmon-14f-1.el5.rf.i386.rpm
4. collection of data
1)./nmon_x86_rhel52-s10-c60-f-M.
-S10 sets the data once every 10 seconds.
-C60 Collection 60 times, that is, the collection of 10 minutes of data.
-F generates a data file name that includes the time the file was created.
-M The storage folder for the generated data files.
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, including process information
nmon–ft-s 30-c
This generates a Nmon file and updates every 10 seconds until 10 minutes later.
The resulting file name, such as: 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.
Assuming the macro cannot be executed, the following actions are required:
tools, macro---security, and then open the file and agree to execute the macro.
6. Example 1:
Take the initiative to set data by day:
Add a record in crontab:
- 0 0 * * * nmon-s300-c288-f-m/home/>/dev/null 2>&1
300*288=86400 seconds, just a day's data
2) A, Run 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, start at 08 in the morning and monitor 10 hours (until 18:00) and output to/nmon/log
LR Notes-nmon+analyser monitoring Linux system resources