diff --git a/sources/tech/20140911 Sysstat--All-in-One System Performance and Usage Activity Monitoring Tool For Linux.md b/sources/tech/20140911 Sysstat--All-in-One System Performance and Usage Activity Monitoring Tool For Linux.md deleted file mode 100644 index 37cd6ca5f9..0000000000 --- a/sources/tech/20140911 Sysstat--All-in-One System Performance and Usage Activity Monitoring Tool For Linux.md +++ /dev/null @@ -1,125 +0,0 @@ -translating by cvsher -Sysstat – All-in-One System Performance and Usage Activity Monitoring Tool For Linux -================================================================================ -**Sysstat** is really a handy tool which comes with number of utilities to monitor system resources, their performance and usage activities. Number of utilities that we all use in our daily bases comes with sysstat package. It also provide the tool which can be scheduled using cron to collect all performance and activity data. - -![Install Sysstat in Linux](http://www.tecmint.com/wp-content/uploads/2014/08/sysstat.png) - -Install Sysstat in Linux - -Following are the list of tools included in sysstat packages. - -### Sysstat Features ### - -- [**iostat**][1]: Reports all statistics about your CPU and I/O statistics for I/O devices. -- **mpstat**: Details about CPUs (individual or combined). -- **pidstat**: Statistics about running processes/task, CPU, memory etc. -- **sar**: Save and report details about different resources (CPU, Memory, IO, Network, kernel etc..). -- **sadc**: System activity data collector, used for collecting data in backend for sar. -- **sa1**: Fetch and store binary data in sadc data file. This is used with sadc. -- **sa2**: Summaries daily report to be used with sar. -- **Sadf**: Used for displaying data generated by sar in different formats (CSV or XML). -- **Sysstat**: Man page for sysstat utility. -- **nfsiostat**-sysstat: I/O statistics for NFS. -- **cifsiostat**: Statistics for CIFS. - -Recenlty, on 17th of June 2014, **Sysstat 11.0.0** (stable version) has been released with some new interesting features as follows. - -pidstat command has been enhanced with some new options: first is “-R” which will provide information about the policy and task scheduling priority. And second one is “**-G**” which we can search processes with name and to get the list of all matching threads. - -Some new enhancement have been brought to sar, sadc and sadf with regards to the data files: Now data files can be renamed using “**saYYYYMMDD**” instead of “**saDD**” using option **–D** and can be located in directory different from “**/var/log/sa**”. We can define new directory by setting variable “SA_DIR”, which is being used by sa1 and sa2. - -### Installation of Sysstat in Linux ### - -The ‘**Sysstat**‘ package also available to install from default repository as a package in all major Linux distributions. However, the package which is available from the repo is little old and outdated version. So, that’s the reason, we here going to download and install the latest version of sysstat (i.e. version **11.0.0**) from source package. - -First download the latest version of sysstat package using the following link or you may also use **wget** command to download directly on the terminal. - -- [http://sebastien.godard.pagesperso-orange.fr/download.html][2] - - # wget http://pagesperso-orange.fr/sebastien.godard/sysstat-11.0.0.tar.gz - -![Download Sysstat Package](http://www.tecmint.com/wp-content/uploads/2014/08/Download-Sysstat.png) - -Download Sysstat Package - -Next, extract the downloaded package and go inside that directory to begin compile process. - - # tar -xvf sysstat-11.0.0.tar.gz - # cd sysstat-11.0.0/ - -Here you will have two options for compilation: - -a). Firstly, you can use **iconfig** (which will give you flexibility for choosing/entering the customized values for each parameters). - - # ./iconfig - -![Sysstat iconfig Command](http://www.tecmint.com/wp-content/uploads/2014/08/Sysstat-iconfig-Command.png) - -Sysstat iconfig Command - -b). Secondly, you can use standard **configure** command to define options in single line. You can run **./configure –help command** to get list of different supported options. - - # ./configure --help - -![Sysstat Configure Help](http://www.tecmint.com/wp-content/uploads/2014/08/Configure-Help.png) - -Sysstat Configure Help - -Here, we are moving ahead with standard option i.e. **./configure** command to compile sysstat package. - - # ./configure - # make - # make install - -![Configure Sysstat in Linux](http://www.tecmint.com/wp-content/uploads/2014/08/Configure-Sysstat.png) - -Configure Sysstat in Linux - -After compilation process completes, you will see the output similar to above. Now, verify the sysstat version by running following command. - - # mpstat -V - - sysstat version 11.0.0 - (C) Sebastien Godard (sysstat orange.fr) - -### Updating Sysstat in Linux ### - -By default sysstat use “**/usr/local**” as its prefix directory. So, all binary/utilities will get installed in “**/usr/local/bin**” directory. If you have existing sysstat package installed, then those will be there in “**/usr/bin**”. - -Due to existing sysstat package, you will not get your updated version reflected, because your “**$PATH**” variable don’t have “**/usr/local/bin set**”. So, make sure that “**/usr/local/bin**” exist there in your “$PATH” or set **–prefix** option to “**/usr**” during compilation and remove existing version before starting updating. - - # yum remove sysstat [On RedHat based System] - # apt-get remove sysstat [On Debian based System] - ----------- - - # ./configure --prefix=/usr - # make - # make install - -Now again, verify the updated version of systat using same ‘mpstat’ command with option ‘**-V**’. - - # mpstat -V - - sysstat version 11.0.0 - (C) Sebastien Godard (sysstat orange.fr) - -**Reference**: For more information please go through [Sysstat Documentation][3] - -That’s it for now, in my upcoming article, I will show some practical examples and usages of sysstat command, till then stay tuned to updates and don’t forget to add your valuable thoughts about the article at below comment section. - --------------------------------------------------------------------------------- - -via: http://www.tecmint.com/install-sysstat-in-linux/ - -作者:[Kuldeep Sharma][a] -译者:[译者ID](https://github.com/译者ID) -校对:[校对者ID](https://github.com/校对者ID) - -本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 - -[a]:http://www.tecmint.com/author/kuldeepsharma47/ -[1]:http://www.tecmint.com/linux-performance-monitoring-with-vmstat-and-iostat-commands/ -[2]:http://sebastien.godard.pagesperso-orange.fr/download.html -[3]:http://sebastien.godard.pagesperso-orange.fr/documentation.html diff --git a/translated/tech/Sysstat – All-in-One System Performance and Usage Activity Monitoring Tool For Linux.md b/translated/tech/Sysstat – All-in-One System Performance and Usage Activity Monitoring Tool For Linux.md new file mode 100644 index 0000000000..2c28c2c7d2 --- /dev/null +++ b/translated/tech/Sysstat – All-in-One System Performance and Usage Activity Monitoring Tool For Linux.md @@ -0,0 +1,122 @@ +集所有功能与一身的Linux系统性能和使用活动监控工具-Sysstat +=========================================================================== +**Sysstat**是一个非常方便的工具,它带有众多的系统资源监控工具,用于监控系统的性能和使用情况。我们在日常使用的工具中有相当一部分是来自sysstat工具包的。同时,它还提供了一种使用cron表达式来制定性能和活动数据的收集计划。 + +![Install Sysstat in Linux](http://www.tecmint.com/wp-content/uploads/2014/08/sysstat.png) + +在Linux系统中安装Sysstat + +下表是包含在sysstat包中的工具 + +- [**isstat**][1]: 输出CPU的统计信息和所有I/O设备的输入输出(I/O)统计信息。 +- **mpstat**: 关于多有CPU的详细信息(单独输出或者分组输出)。 +- **pidstat**: 关于运行中的进程/任务、CPU、内存等的统计信息。 +- **sar**: 保存并输出不同系统资源(CPU、内存、IO、网络、内核、等。。。)的详细信息。 +- **sadc**: 系统活动数据收集器,用于手机sar工具的后端数据。 +- **sa1**: 系统手机并存储sadc数据文件的二进制数据,与sadc工具配合使用 +- **sa2**: 配合sar工具使用,产生每日的摘要报告。 +- **sadf**: 用于以不同的数据格式(CVS或者XML)来格式化sar工具的输出。 +- **Sysstat**: sysstat工具的man帮助页面。 +- **nfsiostat**: NFS(Network File System)的I/O统计信息。 +- **cifsiostat**: CIFS(Common Internet File System)的统计信息。 + +最近(在2014年6月17日),**sysstat 11.0.0**(稳定版)已经发布了,同时还新增了一些有趣的特性,如下: + +pidstat命令新增了一些新的选项:首先是“-R”选项,该选项将会输出有关策略和任务调度的优先级信息。然后是“**-G**”选项,通过这个选项我们可以使用名称搜索进程,然后列出所有匹配的线程。 + +sar、sadc和sadf命令在数据文件方面同样带来了一些功能上的增强。与以往只能使用“**saDD**”来命名数据文件。现在使用**-D**选项可以用“**saYYYYMMDD**”来重命名数据文件,同样的,现在的数据文件不必放在“**var/log/sa**”目录中,我们可以使用“SA_DIR”变量来定义新的目录,该变量将应用与sa1和sa2命令。 + +###在Linux系统中安装Sysstat#### + +在主要的linux发行版中,‘**Sysstat**’工具包可以在默认的程序库中安装。然而,在默认程序库中的版本通常有点旧,因此,我们将会下载源代码包,编译安装最新版本(**11.0.0**版本)。 + +首先,使用下面的连接下载最新版本的sysstat包,或者你可以使用**wget**命令直接在终端中下载。 + +- [http://sebastien.godard.pagesperso-orange.fr/download.html][2] + + # wget http://pagesperso-orange.fr/sebastien.godard/sysstat-11.0.0.tar.gz + +![Download Sysstat Package](http://www.tecmint.com/wp-content/uploads/2014/08/Download-Sysstat.png) + +下载Sysstat包 + +然后解压缩下载下来的包,进去该目录,开始编译安装 + + # tar -xvf sysstat-11.0.0.tar.gz + # cd sysstat-11.0.0/ + +这里,你有两种编译安装的方法: + +a).第一,你可以使用**iconfig**(这将会给予你很大的灵活性,你可以选择/输入每个参数的自定义值) + + # ./iconfig + +![Sysstat iconfig Command](http://www.tecmint.com/wp-content/uploads/2014/08/Sysstat-iconfig-Command.png) + +Sysstat的iconfig命令 + +b).第二,你可以使用标准的**configure**命令在当行中定义所有选项。你可以运行 **./configure –help 命令**来列出该命令所支持的所有限选项。 + + # ./configure --help + +![Sysstat Configure Help](http://www.tecmint.com/wp-content/uploads/2014/08/Configure-Help.png) + +Stsstat的cofigure -help + +在这里,我们使用标准的**./configure**命令来编译安装sysstat工具包。 + + # ./configure + # make + # make install + +![Configure Sysstat in Linux](http://www.tecmint.com/wp-content/uploads/2014/08/Configure-Sysstat.png) + +在Linux系统中配置sysstat + +在编译完成后,我们将会看到一些类似于上图的输出。现在运行如下命令来查看sysstat的版本。 + + # mpstat -V + + sysstat version 11.0.0 + (C) Sebastien Godard (sysstat orange.fr) + +###在Linux 系统中更新sysstat### + +默认的,sysstat使用“**/usr/local**”作为其目录前缀。因此,所有的二进制数据/工具都会安装在“**/usr/local/bin**”目录中。如果你的系统已经安装了sysstat 工具包,则上面提到的二进制数据/工具有可能在“**/usr/bin**”目录中。 + +因为“**$PATH**”变量不包含“**/usr/local/bin**”路径,你在更新时可能会失败。因此,确保“**/usr/local/bin**”路径包含在“$PATH”环境变量中,或者在更新前,在编译和卸载旧版本时将**-prefix**选项指定值为“**/usr**”。 + + # yum remove sysstat [On RedHat based System] + # apt-get remove sysstat [On Debian based System] + +---------- + + # ./configure --prefix=/usr + # make + # make install + +现在,使用‘mpstat’命令的‘**-V**’选项查看更新后的版本。 + + # mpstat -V + + sysstat version 11.0.0 + (C) Sebastien Godard (sysstat orange.fr) + +**参考**: 更多详细的信息请到 [Sysstat Documentation][3] + +在我的下一篇文章中,我将会展示一些sysstat命令使用的实际例子,敬请关注更新。别忘了在下面评论框中留下您宝贵的意见。 + +-------------------------------------------------------------------------------- + +via: http://www.tecmint.com/install-sysstat-in-linux/ + +作者:[Kuldeep Sharma][a] +译者:[cvsher](https://github.com/cvsher) +校对:[校对者ID](https://github.com/校对者ID) + +本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创翻译,[Linux中国](http://linux.cn/) 荣誉推出 + +[a]:http://www.tecmint.com/author/kuldeepsharma47/ +[1]:http://www.tecmint.com/linux-performance-monitoring-with-vmstat-and-iostat-commands/ +[2]:http://sebastien.godard.pagesperso-orange.fr/download.html +[3]:http://sebastien.godard.pagesperso-orange.fr/documentation.html