How SiteScope monitors resources such as Linux or UnixCPU memory

Source: Internet
Author: User
Tags sitescope
Analysis of how SiteScope monitors resources such as Linux or UnixCPU memory-Linux Enterprise Application-Linux server application information. The following is a detailed description. The working principle of SiteScope in Linux (Unix) monitoring is as follows: SiteScope logs on to Linux (Unix) through different connection methods (note: the logon method can be ssh, telnet, rsh, rlogin), and then execute the corresponding commands in the login terminal (for example, execute the command to view CPU on Linux when viewing CPU utilization, and execute the command to view content on Linux when viewing memory, these commands are built-in commands );

1. SiteScope sends a command to Unix to obtain CPU utilization data. The command is as follows (the command is obtained through packet capture ):

/Usr/bin/vmstat 3 2; echo sitescope-command-end \ r \ n

2. Unix returns the following data after obtaining the SiteScope command:

Usr/bin/vmstat 3 2; echo sitescope-command-end \ r \ n

Kthr memory page faults cpu \ r \ n

----- ----------- ------------------------ ------------ ----------- \ R \ n

R B avm fre re pi po fr sr cy in sy cs us sy id wa \ r \ n

2 2 429873 239321 0 0 0 881 1292 0 347 499 1256 99 99 99 \ r \ n

0 2 429873 239320 0 0 0 0 0 209 1029 143 1 0 99 0 \ r \ n

Sitescope-command-end \ r \ n

3. After all the information returned in step 2 is obtained by the SiteScope, the CPU utilization of the Unix system is analyzed. If the returned information is missing, the SiteScope System displays no data.
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.