|
In the monitor system resources, system performance and use activities, Sysstat is indeed a handy tool. In our daily basic tools are used in more or less the sysstat package. It also provides a use of cron can be scheduled to run the tool to collect performance data and activity records.
The following is a list of tools in the sysstat package of software:
Sysstat list of features:
iostat: Statistics and reports the status of your device's CPU and I / O status data.
mpstat: monitor and display details about the CPU.
pidstat: Statistical process running / task CPU, memory, and other information.
sar: keeping and reporting different resources (CPU, memory, input and output, network, core, etc.) for more information.
sadc: system activity data collector for data collection sar background.
sa1: sadc read and store data files of binary data.
sa2: sar and collaboration for daily summary reports.
Sadf: in different formats (CSV or XML) display sar generated data.
Sysstat: explain the various roles sysstat.
nfsiostat-sysstat: Statistics NFS protocol network file system I / O status data.
cifsiostat: Statistics CIFS protocol network file system I / O status data.
June 17, 2014, SYSSTAT11.0.0 (stable version) released. It brings some new interesting features, as shown below.
pidstat new command has been enhanced, adding a number of command options:
One is the "-R", which can provide information about policies and task scheduling priority. Followed by "-G", the process can be used to search by name and get a list of all threads corresponding match.
Meanwhile, sar, sadc, sadf these commands are data files has made new enhancements. Now, with the option -D data can rename the file to "saYYYYMMDD" format instead of "saDD"; you can also use a different directory, is no longer just "/ var / log / sa". We can by setting the variable "SA_DIR" to define a new directory sa1 and sa2 use.
In the Linux environment to install Sysstat
This "Sysstat" Of course you can get the package and installed in the main Linux distribution's package repository. However, the software library packages obtained from a narrow version and an older version. So, this is why we want to host the official website to download and install the latest version (11.0.0) grounds in the package.
First of all, please use the following link to download the latest version of sysstat package, or you can download wget commands directly in the terminal.
http://sebastien.godard.pagesperso-orange.fr/download.html
# Wget http://pagesperso-orange.fr/sebastien.godard/sysstat-11.0.0.tar.gz
Next, extract the downloaded package, and then enter the directory and start the compilation process.
# Tar -xvf sysstat-11.0.0.tar.gz
# Cd sysstat-11.0.0 /
At this point, there are two options:
a) First, you can use iconfig command (which will let you set each parameter promising free custom values).
# ./iconfig
b) Second, you can define the options for a single command line using the standard configure command. Is run ./configure -help to get a list of command options are supported.
# ./configure --help
[Img] http://www.linuxstory.org/wp-content/uploads/2015/12/Configure-Help-620x425.png [/ img]
Here, we use the standard options that the use ./configure command to compile the sysstat package.
# ./configure
# Make
# Make install
After compilation, you will see output similar to the above. Now verify sysstat version by running the following command.
# Mpstat -V
sysstat version 11.0.0
(C) Sebastien Godard (sysstat orange.fr)
Update Sysstat in Linux systems
By default, the compiler will install the package in / usr / local "directory. Therefore, all binary / public file will be installed in" / usr / local / bin "directory. If you have installed the package sysstat , you can find those files directly in "/ usr / bin" in.
If you have already installed the sysstat package and your system "$ PATH" variable is not added to "/ usr / local / bin", then you will not receive tips about the updated version. So the compiler or remove the existing version before updating process, make sure to check the "$ PATH" variable good system has been set up "/ usr / local / bin" or been able to -prefix option to configure the "/ usr "content.
# Yum remove sysstat [On RedHat based System]
# Apt-get remove sysstat [On Debian based System]
# ./configure --prefix = / Usr
# Make
# Make install
Now, using the same "" mpstat command and the "-V" option again to confirm later.
# Mpstat -V
sysstat version 11.0.0
(C) Sebastien Godard (sysstat orange.fr)
Currently it is. Next, in a forthcoming article, I'm going to show you some practical usage in Action and sysstat commands. Stay tuned. Also welcome to leave your thoughts in the comments section below the article. |
|
|
|