Sysstat - System Statistics and Monitoring Tool
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.
Comments ( 0 )
No comments available