Installation of Nmon:
1. Create a new directory Nmon:mkdir-p/home/tool/nmon
2. Get the Nmon installation package:
Http://nmon.sourceforge.net/pmwiki.php?n=Site.Download
Need to choose according to needs, I use the CentOS, so choose this installation package:
3. Upload the tar package to the Linux Nmon directory via SFTP
4. Unzip the TAR package in Linux: TAR-ZXVF nmon16e_mgpinc.tar-gz
5. Modify the permissions of the NMON_X86_64_CENTOS7: chmod u+x Nmon_x86_64_centos7
6. Create a soft link: ln-s/home/tool/nmon/nmon_x86_64_centos7/usr/bin/nmon
Use of Nmon:
1. Log in as root, enter Nmon as shown:
Follow the prompts to enter the corresponding key to display the statistics.
2. Generate Nmon Report:
[Email protected] log]# nmon-s 10-c 60-f-m/home/log/
-S: Specifies the time between data acquisition, here is 10s
-C: Specify the number of data acquisition, here is 60 times
-F: Generated file contains time to start data collection
-M: Specify the file directory for data generation
The file is generated as shown in:
The file format is: hostname_ date _ time. Nmon
Download Nmon Analyser (free tool for generating performance reports):
Https://www.ibm.com/developerworks/community/wikis/home?lang=en#!/wiki/Power%20Systems/page/nmon_analyser
Upload the previously generated Nmon data file to the Windows machine and open the analysis tool Nmon analyser v51_2.xlsm with Excel. Click the "Analyze Nmon Data" button in the Excel file to select the Nmon file, which will generate a parsed result file: site1_170609_1141.nmon.xlsx, open the generated file with Excel to see the results.
3. Set up the Timer task monitoring system:
Crontab setting method See: Http://www.cnblogs.com/maybo/p/5183753.html
Installation and use of Nmon in Linux