• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

Sysstat - System Statistics and Monitoring Tool

{{postValue.id}}

Sysstat &ndash System Statistics and Monitoring Tool

Sysstat is one of the powerful monitoring tool to track the system statistics and to troubleshoot the issues. This tutorial covers the ground on the installation procedure of sysstat tool.

Features

  • iostat used to report all statistics about your CPU and I/O statistics for I/O devices.
  • nfsiostat-sysstat used to I/O statistics for NFS.
  • sa2 used to summaries daily report to be used with sar.
  • pidstat reports Statistics about running processes/task, CPU, memory etc.
  • sadc used to System activity data collector, used for collecting data in backend for sar.
  • sar writes Save and report details about different resources.
  • Sadf used for displaying data generated by sar in different formats.
  • mpstat writes details about CPUs.
  • cifsiostat used for statistics for CIFS.
  • sa1 writes fetch and store binary data in sadc data file. This is used with sadc.

To install Sysstat in Linux

Download sysstat package using the below link http://sebastien.godard.pagesperso-orange.fr/download.html

[root@linuxhelp ~]# wget http://pagesperso-orange.fr/sebastien.godard/sysstat-11.0.0.tar.gz
--2016-04-15 20:07:20--  http://pagesperso-orange.fr/sebastien.godard/sysstat-11.0.0.tar.gz 
Resolving pagesperso-orange.fr... 193.252.122.54 
Connecting to pagesperso-orange.fr|193.252.122.54|:80... connected. 
HTTP request sent, awaiting response... 301 Moved Permanently 
Location: http://sebastien.godard.pagesperso-orange.fr/sysstat-11.0.0.tar.gz [following] 
--2016-04-15 20:07:20--  http://sebastien.godard.pagesperso-orange.fr/sysstat-11.0.0.tar.gz 
Resolving sebastien.godard.pagesperso-orange.fr... 193.252.122.54 
Reusing existing connection to pagesperso-orange.fr:80. 
HTTP request sent, awaiting response... 200 OK 
Length: 406880 (397K) [application/x-gzip] 
Saving to: “ sysstat-11.0.0.tar.gz”  

100%[=================================================> ] 406,880     93.1K/s   in 4.3s    

2016-04-15 20:07:25 (93.3 KB/s) - “ sysstat-11.0.0.tar.gz”  saved [406880/406880] 

Extract the tar package in the terminal.

[root@linuxhelp ~]# tar -xvf sysstat-11.0.0.tar.gz
sysstat-11.0.0/ 
sysstat-11.0.0/cifsiostat.c 
sysstat-11.0.0/FAQ 
sysstat-11.0.0/ioconf.h 
sysstat-11.0.0/rd_stats.h 
sysstat-11.0.0/COPYING 
sysstat-11.0.0/common.h 
sysstat-11.0.0/sysconfig.in 
sysstat-11.0.0/mpstat.h 
.  
. 
.
sysstat-11.0.0/prealloc.in 
sysstat-11.0.0/sysstat-11.0.0.spec 
sysstat-11.0.0/sa2.in 
[root@linuxhelp ~]# cd sysstat-11.0.0
[root@linuxhelp sysstat-11.0.0]#

To start Sysstat compile process

To start sysstat compilation process there aretwo options.

To use iconfig command

[root@linuxhelp sysstat-11.0.0]# ./iconfig
Welcome to sysstat' s Interactive Configuration script! 
This script enables you to set the parameters value used by ./configure. 
Please enter the value for the parameters listed below. 
Press Return to tell ./configure to use the default value or to try to guess the proper one. 
Defaut value for yes/no questions is no (parameter is NOT set). 
You can enter a ? to display a help message at any time... 
Installation directory: [--prefix] 
. 
.
. 
config.status: creating Makefile 

   Sysstat version:        11.0.0 
   Installation prefix:        /usr/local 
   rc directory:        /etc/rc.d 
   Init directory:        /etc/rc.d/init.d 
   Systemd unit dir:         
   Configuration directory:    /etc/sysconfig 
   Man pages directory:        ${datarootdir}/man 
   Compiler:            gcc 
   Compiler flags:        -g -O2 

To define options in single line use “ configure” command and to get list execute.

[root@linuxhelp sysstat-11.0.0]# ./configure --help
`configure'  configures sysstat 11.0.0 to adapt to many kinds of systems. 
Usage: ./configure [OPTION]... [VAR=VALUE]... 
To assign environment variables (e.g., CC, CFLAGS...), specify them as 
VAR=VALUE.  See below for descriptions of some of the useful variables. 
Defaults for the options are specified in brackets. 

Configuration: 
  -h, --help              display this help and exit 
      --help=short        display options specific to this package 
      --help=recursive    display the short help of all the included packages 
. 
. 
. 
   Compiler:            gcc 
   Compiler flags:        -g -O2 

Using ./configure command we can compile sysstat package.

[root@linuxhelp sysstat-11.0.0]# ./configure 
. 
Check programs: 
. 
checking for gcc... gcc 
checking whether the C compiler works... yes 
checking for C compiler default output file name... a.out 
checking for suffix of executables... 
checking whether we are cross compiling... no 
checking for suffix of object files... o 
checking whether we are using the GNU C compiler... yes 
checking whether gcc accepts -g... yes 
. 
. 
config.status: creating Makefile 

   Sysstat version:        11.0.0 
   Installation prefix:        /usr/local 
   rc directory:        /etc/rc.d 
   Init directory:        /etc/rc.d/init.d 
   Systemd unit dir:         
   Configuration directory:    /etc/sysconfig 
   Man pages directory:        ${datarootdir}/man 
   Compiler:            gcc 
   Compiler flags:        -g -O2 

[root@linuxhelp sysstat-11.0.0]# make
gcc -o sadc.o -c -g -O2 -Wall -Wstrict-prototypes -pipe -O2  -DSA_DIR=" /var/log/sa"  -DSADC_PATH=" /usr/lib64/sa/sadc"  -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=" sysstat"  -DLOCALEDIR=" /usr/share/locale"  sadc.c 
gcc -o sa_wrap.o -c -g -O2 -Wall -Wstrict-prototypes -pipe -O2  -DSA_DIR=" /var/log/sa"  -DSADC_PATH=" /usr/lib64/sa/sadc"  -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=" sysstat"  -DLOCALEDIR=" /usr/share/locale"  sa_wrap.c 
gcc -o sa_common.o -c -g -O2 -Wall -Wstrict-prototypes -pipe -O2  -DSA_DIR=" /var/log/sa"  -DSADC_PATH=" /usr/lib64/sa/sadc"  -DHAVE_SENSORS -DUSE_NLS -DPACKAGE=" sysstat"  -DLOCALEDIR=" /usr/share/locale"  sa_common.c 
. 
. 
. 
install -m 644 README /usr/share/doc/sysstat-11.0.0 
install -m 644 FAQ /usr/share/doc/sysstat-11.0.0 
install -m 644 *.lsm /usr/share/doc/sysstat-11.0.0  

[root@linuxhelp sysstat-11.0.0]# make install
mkdir -p /usr/share/man/man1 
mkdir -p /usr/share/man/man5 
mkdir -p /usr/share/man/man8 
rm -f /usr/share/man/man8/sa1.8* 
install -m 644 -g man man/sa1.8 /usr/share/man/man8 
rm -f /usr/share/man/man8/sa2.8* 
install -m 644 -g man man/sa2.8 /usr/share/man/man8 
rm -f /usr/share/man/man8/sadc.8* 
. 
. 
install -m 644 FAQ /usr/share/doc/sysstat-11.0.0 
install -m 644 *.lsm /usr/share/doc/sysstat-11.0.0  
[root@linuxhelp sysstat-11.0.0]# mpstat -V 
sysstat version 11.0.0 
(C) Sebastien Godard (sysstat  orange.fr)

To verify the sysstat version

[root@linuxhelp sysstat-11.0.0]# mpstat -V
sysstat version 11.0.0 
(C) Sebastien Godard (sysstat  orange.fr) 

Sysstat 11.0.0 is the latest version.

If your system has lesser version than the latest version, upgrade from the older version then download the respective package and install.

Tags:
aiden
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

can I use yum install method to install this package?

A

Yes, you can also use the command yum install sysstat to install this package

Q

what are the commands that included in this package

A

after installing this package you will have the following commands, iostat, mpstat, pidstat, tapestat, memstat, sar

Q

I want to install this tool on parrot os

A

you can follow this link, https://www.linuxhelp.com/how-to-install-sysstat-on-parrotos-3-9/

Q

How can I monitor all the scheduled changes and maintenance done on my system?

A

We can monitor Event Logs for Windows & Syslogs for Linux based servers. Any change in the system will generate an event which can be captured by OpManager and you can create Rules in OpManager to generate an alarm for the event.

Q

Is there any option to get process wise utilization in a server?

A

Yes, we have reports like ‘process by CPU utilization’ and ‘process by Memory Utilization’ You can view all the process details of a particular server from device snapshot page.

Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Jayce ?
What are the types of table used in IPtables

What are the various types of table used in IPtables and how to use that for my server security?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.