• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Linux OS Service ‘sysstat’

by admin

Service Name

sysstat

Description

The sysstat service (/etc/init.d/sysstat) is responsible for the regular collection of system performance information. Through the use of cron and sadc (System Activity data collector), sysstat gathers sar data (/var/log/sa/) at 10 minute intervals daily. The service has little impact on overall server performance. The default sysstat configuration (/etc/sysconfig/sysstat) overwrites collected performance information every 7 days. Sysstat is provided as part of the sysstat package – it also provides useful system performance gathering utilities including; mpstat, iostat and sar.

Configuration

Default sysstat configuration file is /etc/sysconfig/sysstat. Below is the sample configuration file.

# cat /etc/sysconfig/sysstat
# sysstat-9.0.4 configuration file.

# How long to keep log files (in days).
# If value is greater than 28, then log files are kept in
# multiple directories, one for each month.
HISTORY=28

# Compress (using gzip or bzip2) sa and sar files older than (in days):
COMPRESSAFTER=31

# Parameters for the system activity data collector (see sadc manual page)
# which are used for the generation of log files.
SADC_OPTIONS="-S DISK"

# Compression program to use.
ZIP="bzip2"

Deafult sysstat cron tab file is /etc/cron.d/sysstat. The sample cron file is shown below.

# cat /etc/cron.d/sysstat
# Run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib64/sa/sa1 1 1
# 0 * * * * root /usr/lib64/sa/sa1 600 6 &
# Generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib64/sa/sa2 -A

Filed Under: CentOS/RHEL 7, Linux

Some more articles you might also be interested in …

  1. How To Enforce Password Complexity For All Users, Including “root”, By Using the “passwdqc” PAM Module CentOS/RHEL
  2. How to configure postifx smtp relay in CentOS/RHEL 5 and 6
  3. TIME_WAIT queue troubles
  4. SSSD Service Failing with “SSSD is already running” in CentOS/RHEL 7
  5. CentOS / RHEL : How to resize (extend) existing Physical Volume (PV)
  6. CentOS / RHEL : Exclusion with Yum For Kernel Updates
  7. Beginners Guide to User and Group Administration in Linux
  8. netstat Command Examples in Linux
  9. How to Setup SSH keys for “passwordless” ssh login in Linux
  10. GlusterFS – Real Time Data Replication Across Multiple RHEL/CentOS Nodes

You May Also Like

Primary Sidebar

Recent Posts

  • grpck command – Remove corrupt or duplicate entries in the /etc/group and /etc/gshadow files.
  • xxd command – Expressed in hexadecimal form
  • sesearch: command not found
  • macof: command not found

© 2022 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright