nmon
First, download and run nmon
- Download nmon package
[root@yunwei nmon]# wget http://sourceforge.net/projects/nmon/files/nmon16h_helpsystems_v2.tar.gz
- Decompression
[root@yunwei nmon]# tar zxf nmon16h_helpsystems_v2.tar.gz
[root@yunwei nmon]#
Second, real-time monitoring
- Run the corresponding system version of the script
[root@yunwei nmon]# ./nmon_x86_64_centos7
Interface can be seen above, the information can be viewed by cpu [c], press [m] View memory information, press the [n] to view network information and the like, may be necessary to view the data according to the above information.
Third, monitor output
1) Run the script
nmon supports output to monitor the contents of the file, to visualize the way to show it.
[root@yunwei nmon]# ./nmon_x86_64_centos7 -s 2 -c 60 -f -m ./
Parameters explanation:
-s specifies the data collected once a few seconds.
-c number of acquisitions.
-F data file name included in the generated files created time
-M storage directory generated data files
After running the command, the script will run in the background, you can see through ps.
[root@yunwei nmon]# ps aux | grep nmon
root 25869 0.0 0.0 16096 892 pts/0 S 14:17 0:00 ./nmon_x86_64_centos7 -s 2 -c 60 -f -m ./
root 25975 0.0 0.0 112660 972 pts/0 R+ 14:17 0:00 grep --color=auto nmon
[root@yunwei nmon]#
The default generated files are hostname_data named.
2) View data
nmon data generated need to use nmon Analyser open, this plug-in is very small, less than 1M.
Download nmon Analyser
After downloading directly extracted, and then open the nmon analyser v60.xlsm
Click "Analyze nmon data" button, select the nmon file and follow the prompts to save the file as nmon xls, after which you can see a variety of information.
Operation and maintenance of the public to No. teenager