{"id":2285,"date":"2012-03-15T19:27:12","date_gmt":"2012-03-15T11:27:12","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=2285"},"modified":"2023-04-28T09:49:40","modified_gmt":"2023-04-28T09:49:40","slug":"how-to-install-sysstat-on-centos-5-7-linux-server","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-sysstat-on-centos-5-7-linux-server\/","title":{"rendered":"How to Install sysstat on CentOS 5.7 Linux Server"},"content":{"rendered":"<p>In this post i will show how to install sysstat on Linux CentOS 5.7 server. Sysstat package is on of the method to monitor the linux server. sysstat package contains the sar, iostat and mpstat which are the system performance tools for Linux operating system. The sar command collects and reports system activity information. The iostat command reports CPU utilization and I\/O statistics for disks. The mpstat command reports global and per-processor statistics. The statistics reported by sar concern I\/O transfer rates, paging activity, process-related activities, interrupts, network activity, memory and swap space utilization, CPU utilization, kernel activities and TTY statistics. All these tools can be schedule via cron to collect and historize performance and activity data. These are the list of sysstat&#8217;s available packages :<\/p>\n<p>a) iostat(1) reports CPU statistics and input\/output statistics for devices, partitions and network filesystems.<br \/>\nb) mpstat(1) reports individual or combined processor related statistics.<br \/>\nc) pidstat(1) reports statistics for Linux tasks (processes) : I\/O, CPU, memory, etc.<br \/>\nd) sar(1) collects, reports and saves system activity information (CPU, memory, disks, interrupts, network interfaces, TTY, kernel tables,etc.)<br \/>\ne) sadc(8) is the system activity data collector, used as a backend for sar.<br \/>\nf) sa1(8) collects and stores binary data in the system activity daily data file. It is a front end to sadc designed to be run from cron.<br \/>\ng) sa2(8) writes a summarized daily activity report. It is a front end to sar designed to be run from cron.<br \/>\nh) sadf(1) displays data collected by sar in multiple formats (CSV, XML, etc.) This is useful to load performance data into a database, or import them in a spreadsheet to make graphs.<br \/>\ni) nfsiostat(1) reports input\/output statistics for network filesystems (NFS).<br \/>\nj) cifsiostat(1) reports CIFS statistics.<\/p>\n<p>To install sysstat, simply run the following command :<\/p>\n<pre>\n[root@CentOS57 ~]# yum install sysstat -y\nLoaded plugins: fastestmirror\nLoading mirror speeds from cached hostfile\n * base: mirror.oscc.org.my\n * extras: mirror.oscc.org.my\n * rpmforge: fr2.rpmfind.net\n * updates: mirror.oscc.org.my\nSetting up Install Process\nResolving Dependencies\n--> Running transaction check\n---> Package sysstat.i386 0:7.0.2-11.el5 set to be updated\n--> Finished Dependency Resolution\n\nDependencies Resolved\n\n====================================================================================================\n Package                Arch                Version                       Repository           Size\n====================================================================================================\nInstalling:\n sysstat                i386                7.0.2-11.el5                  base                182 k\n\nTransaction Summary\n====================================================================================================\nInstall       1 Package(s)\nUpgrade       0 Package(s)\n\nTotal download size: 182 k\nDownloading Packages:\nsysstat-7.0.2-11.el5.i386.rpm                                                | 182 kB     00:00\nRunning rpm_check_debug\nRunning Transaction Test\nFinished Transaction Test\nTransaction Test Succeeded\nRunning Transaction\n  Installing     : sysstat                                                                      1\/1\n\nInstalled:\n  sysstat.i386 0:7.0.2-11.el5\n\nComplete!\n<\/pre>\n<p>To check the installed sysstat&#8217;s package using rpm command :<\/p>\n<pre>\n[root@CentOS57 ~]# rpm -qa sysstat\nsysstat-7.0.2-11.el5\n<\/pre>\n<p>To see sysstat manual simply run any of the sisgle package command. As an example sa1 :<\/p>\n<pre>\n[root@CentOS57 ~]# man sa1\n<\/pre>\n<pre>\nSA1(8)                        Linux User\u00e2s Manual                       SA1(8)\n\nNAME\n       sa1 - Collect and store binary data in the system activity daily data file.\n\nSYNOPSIS\n       \/usr\/lib\/sa\/sa1 [ interval count ]\n\nDESCRIPTION\n       The sa1 command is a shell procedure variant of the sadc command and handles all of\n       the flags and parameters of that command. The sa1 command collects and store binary\n       data  in  the  \/var\/log\/sa\/sadd  file, where the dd parameter indicates the current\n       day. The interval and count parameters specify that the record  should  be  written\n       count  times  at interval seconds. If you do not specify these parameters, a single\n       record is written.\n\n       The sa1 command is designed to be started automatically by the cron command.\n\nEXAMPLES\n       To create a daily record of sar activities, place the following entry in your  root\n       or adm crontab file:\n\n       0 8-18 * * 1-5 \/usr\/lib\/sa\/sa1 1200 3 &\n\nFILES\n       \/var\/log\/sa\/sadd\n              Indicate  the daily data file, where the dd parameter is a number represent-\n              ing the day of the month.\n\nAUTHOR\n       Sebastien Godard (sysstat <at> wanadoo.fr)\n\nSEE ALSO\n       sar(1), sadc(8), sa2(8), sadf(1), mpstat(1), iostat(1), vmstat(8)\n\n       http:\/\/perso.orange.fr\/sebastien.godard\/\n\nLinux                              JUNE 2006                            SA1(8)\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In this post i will show how to install sysstat on Linux CentOS 5.7 server. Sysstat package is on of the method to monitor the linux server. sysstat package contains&#8230;<\/p>\n","protected":false},"author":6,"featured_media":349,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2055,1064,1066],"tags":[1244,1248,1518,1536,1546,1582,2085,1730,1731,1732,1735,1894],"class_list":["post-2285","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-centos","category-sysstat","category-system-performance","tag-centos","tag-centos-5-7","tag-iostat","tag-linux","tag-linux-utilities","tag-mpstat","tag-performance","tag-sa2","tag-sadc","tag-sadf","tag-sar","tag-vmstat"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2285","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=2285"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/2285\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/349"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=2285"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=2285"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=2285"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}