{"id":11685,"date":"2019-03-15T22:14:07","date_gmt":"2019-03-15T22:14:07","guid":{"rendered":"http:\/\/www.appservgrid.com\/paw92\/?p=11685"},"modified":"2019-03-15T22:14:07","modified_gmt":"2019-03-15T22:14:07","slug":"sysstat-all-in-one-system-performance-and-usage-activity-monitoring-tool-for-linux","status":"publish","type":"post","link":"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/15\/sysstat-all-in-one-system-performance-and-usage-activity-monitoring-tool-for-linux\/","title":{"rendered":"Sysstat \u2013 All-in-One System Performance and Usage Activity Monitoring Tool For Linux"},"content":{"rendered":"<p><b>Sysstat<\/b>\u00a0is 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.<\/p>\n<div id=\"attachment_8561\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/sysstat.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-8561\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/sysstat.png\" alt=\"Install Sysstat in CentOS\" width=\"442\" height=\"317\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Install Sysstat in Linux<\/p>\n<\/div>\n<p>Following are the list of tools included in sysstat packages.<\/p>\n<h4>Sysstat Features<\/h4>\n<ol>\n<li><a href=\"https:\/\/www.tecmint.com\/linux-performance-monitoring-with-vmstat-and-iostat-commands\/\" target=\"_blank\" rel=\"noopener\">iostat<\/a>: Reports all statistics about your CPU and I\/O statistics for I\/O devices.<\/li>\n<li><b>mpstat<\/b>: Details about CPUs (individual or combined).<\/li>\n<li><b>pidstat<\/b>: Statistics about running processes\/task, CPU, memory etc.<\/li>\n<li><b>sar<\/b>: Save and report details about different resources (CPU, Memory, IO, Network, kernel etc..).<\/li>\n<li><b>sadc<\/b>: System activity data collector, used for collecting data in backend for sar.<\/li>\n<li><b>sa1<\/b>: Fetch and store binary data in sadc data file. This is used with sadc.<\/li>\n<li><b>sa2<\/b>: Summaries daily report to be used with sar.<\/li>\n<li><b>Sadf<\/b>: Used for displaying data generated by sar in different formats (CSV or XML).<\/li>\n<li><b>Sysstat<\/b>: Man page for sysstat utility.<\/li>\n<li><b>nfsiostat-sysstat<\/b>: I\/O statistics for NFS.<\/li>\n<li><b>cifsiostat<\/b>: Statistics for CIFS.<\/li>\n<\/ol>\n<p>Recenlty, on 17th of June 2014,\u00a0<b>Sysstat 11.0.0<\/b>\u00a0(stable version) has been released with some new interesting features as follows.<\/p>\n<p>pidstat command has been enhanced with some new options: first is \u201c<b>-R<\/b>\u201d which will provide information about the policy and task scheduling priority. And second one is \u201c<b>-G<\/b>\u201d which we can search processes with name and to get the list of all matching threads.<\/p>\n<p>Some new enhancement have been brought to sar, sadc and sadf with regards to the data files: Now data files can be renamed using \u201c<b>saYYYYMMDD<\/b>\u201d instead of \u201c<b>saDD<\/b>\u201d using option\u00a0<b>\u2013D<\/b>\u00a0and can be located in directory different from \u201c<b>\/var\/log\/sa<\/b>\u201d. We can define new directory by setting variable \u201c<b>SA_DIR<\/b>\u201d, which is being used by sa1 and sa2.<\/p>\n<h3>Installation of Sysstat in Linux<\/h3>\n<p>The \u2018<strong>Sysstat<\/strong>\u2018 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\u2019s the reason, we here going to download and install the latest version of sysstat (i.e. version\u00a0<strong>11.0.0<\/strong>) from source package.<\/p>\n<p>First download the latest version of sysstat package using the following link or you may also use\u00a0<strong>wget<\/strong>command to download directly on the terminal.<\/p>\n<ol>\n<li><a href=\"http:\/\/sebastien.godard.pagesperso-orange.fr\/download.html\" target=\"_blank\" rel=\"nofollow noopener\">http:\/\/sebastien.godard.pagesperso-orange.fr\/download.html<\/a><\/li>\n<\/ol>\n<pre># wget http:\/\/pagesperso-orange.fr\/sebastien.godard\/sysstat-11.0.0.tar.gz\r\n<\/pre>\n<div id=\"attachment_8555\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Download-Sysstat.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-8555\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Download-Sysstat-620x423.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Download-Sysstat-620x423.png 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Download-Sysstat.png 884w\" alt=\"Download Sysstat Package\" width=\"620\" height=\"423\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Download Sysstat Package<\/p>\n<\/div>\n<p>Next, extract the downloaded package and go inside that directory to begin compile process.<\/p>\n<pre># tar -xvf sysstat-11.0.0.tar.gz \r\n# cd sysstat-11.0.0\/\r\n<\/pre>\n<p>Here you will have two options for compilation:<\/p>\n<p>a). Firstly, you can use\u00a0<b>iconfig<\/b>\u00a0(which will give you flexibility for choosing\/entering the customized values for each parameters).<\/p>\n<pre># .\/iconfig\r\n<\/pre>\n<div id=\"attachment_8559\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Sysstat-iconfig-Command.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-8559\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Sysstat-iconfig-Command-620x423.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Sysstat-iconfig-Command-620x423.png 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Sysstat-iconfig-Command.png 881w\" alt=\"Sysstat iconfig Command\" width=\"620\" height=\"423\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Sysstat iconfig Command<\/p>\n<\/div>\n<p>b). Secondly, you can use standard\u00a0<b>configure<\/b>\u00a0command to define options in single line. You can run\u00a0<b>.\/configure \u2013help<\/b>\u00a0command to get list of different supported options.<\/p>\n<pre># .\/configure --help\r\n<\/pre>\n<div id=\"attachment_8557\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Configure-Help.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-8557\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Configure-Help-620x425.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Configure-Help-620x425.png 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Configure-Help.png 888w\" alt=\"Sysstat Configure Help\" width=\"620\" height=\"425\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Sysstat Configure Help<\/p>\n<\/div>\n<p>Here, we are moving ahead with standard option i.e.\u00a0<b>.\/configure<\/b>\u00a0command to compile sysstat package.<\/p>\n<pre># .\/configure\r\n# make\r\n# make install\t\t\r\n<\/pre>\n<div id=\"attachment_8558\" class=\"wp-caption aligncenter\">\n<p><a href=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Configure-Sysstat.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-8558\" src=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Configure-Sysstat-620x422.png\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" srcset=\"https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Configure-Sysstat-620x422.png 620w, https:\/\/www.tecmint.com\/wp-content\/uploads\/2014\/08\/Configure-Sysstat.png 886w\" alt=\"Configure Sysstat in Linux\" width=\"620\" height=\"422\" data-lazy-loaded=\"true\" \/><\/a><\/p>\n<p class=\"wp-caption-text\">Configure Sysstat in Linux<\/p>\n<\/div>\n<p>After compilation process completes, you will see the output similar to above. Now, verify the sysstat version by running following command.<\/p>\n<pre># mpstat -V\r\n\r\nsysstat version 11.0.0\r\n(C) Sebastien Godard (sysstat &lt;at&gt; orange.fr)\r\n<\/pre>\n<h3>Updating Sysstat in Linux<\/h3>\n<p>By default sysstat use \u201c<b>\/usr\/local<\/b>\u201d as its prefix directory. So, all binary\/utilities will get installed in \u201c<b>\/usr\/local\/bin<\/b>\u201d directory. If you have existing sysstat package installed, then those will be there in \u201c<b>\/usr\/bin<\/b>\u201d.<\/p>\n<p>Due to existing sysstat package, you will not get your updated version reflected, because your \u201c<b>$PATH<\/b>\u201d variable don\u2019t have \u201c<b>\/usr\/local\/bin<\/b>\u00a0set\u201d. So, make sure that \u201c\/usr\/local\/bin\u201d exist there in your \u201c$PATH\u201d or set\u00a0<b>\u2013prefix<\/b>option to \u201c<b>\/usr<\/b>\u201d during compilation and remove existing version before starting updating.<\/p>\n<pre># yum remove sysstat\t\t\t[On <strong>RedHat<\/strong> based System]\r\n# apt-get remove sysstat\t\t[On <strong>Debian<\/strong> based System]\r\n<\/pre>\n<pre># .\/configure --prefix=\/usr\r\n# make\r\n# make install\r\n<\/pre>\n<p>Now again, verify the updated version of systat using same \u2018mpstat\u2019 command with option \u2018-V\u2019.<\/p>\n<pre># mpstat -V\r\n\r\nsysstat version 11.0.0\r\n(C) Sebastien Godard (sysstat &lt;at&gt; orange.fr)\r\n<\/pre>\n<p><b>Reference<\/b>: For more information please go through\u00a0<a href=\"http:\/\/sebastien.godard.pagesperso-orange.fr\/documentation.html\" target=\"_blank\" rel=\"nofollow noopener\">Sysstat Documentation<\/a><\/p>\n<p>That\u2019s 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\u2019t forget to add your valuable thoughts about the article at below comment section.<\/p>\n<p><a href=\"https:\/\/www.tecmint.com\/install-sysstat-in-linux\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sysstat\u00a0is 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 &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/www.appservgrid.com\/paw92\/index.php\/2019\/03\/15\/sysstat-all-in-one-system-performance-and-usage-activity-monitoring-tool-for-linux\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Sysstat \u2013 All-in-One System Performance and Usage Activity Monitoring Tool For Linux&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-11685","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/comments?post=11685"}],"version-history":[{"count":1,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11685\/revisions"}],"predecessor-version":[{"id":11686,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/posts\/11685\/revisions\/11686"}],"wp:attachment":[{"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/media?parent=11685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/categories?post=11685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.appservgrid.com\/paw92\/index.php\/wp-json\/wp\/v2\/tags?post=11685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}