LR Notes-nmon+analyser monitoring Linux system resources

Source: Internet
Author: User

1. View Linux detailed version information

File/sbin/init

2. Download the corresponding Nmon version

http://pkgs.repoforge.org/nmon/

3. Installation

RPM-IVH nmon-14f-1.el5.rf.i386.rpm

4. acquisition of data

1)./nmon_x86_rhel52-s10-c60-f-M.

The-S10 collects data every 10 seconds.
-c60 collected 60 times, that is, the acquisition of 10 minutes of data.
-F generates a data file name that contains the time when the file was created.
The storage directory of the data files generated by-M.

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, contain process information
nmon–ft-s 30-c

This generates a Nmon file and updates every 10 seconds until 10 minutes later.
The generated file name is: 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.

If the macro does not run, you need to do the following:
tools, macro-and security, and then open the file and allow the macro to run.


6. Example 1:
Automatically collect data by day:
Add a record to the 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, execute 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, from 08 o'clock in the morning, monitoring 10 hours (until 18:00), output to/nmon/log
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.