Lightweight monitoring software -nmon

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
10964343-1adb02f17ba9b1e3.png
image

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.

10964343-0f47948fe9287cf5.png
image

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


10964343-c08c755d65b0660e.png
image

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.

10964343-9cb7efa393385267.png
image

10964343-cf10034ff1430fbd.png
image

Operation and maintenance of the public to No. teenager

Guess you like

Origin blog.csdn.net/weixin_34117522/article/details/91017826