LR Notes-nmon+analyser monitoring Linux system resources

Source: Internet
Author: User

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:

    1. 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:

    1. 0 8 * * 1,2,3,4,5/nmon/scriptn/mon_x86_rhel52-f-n-m/nmon/log-s 30-c 1200
    2. 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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.