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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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 Create Disk Partitions using cfdisk
  2. How to run “find” command on current directory only and not on sub-directories
  3. How to Configure iSCSI Initiator and iSCSI Timeouts in CentOS/RHEL 7
  4. How to Restrict Active Directory Users and Groups to Login to CentOS/RHEL 7 Client
  5. Bash for loop Examples
  6. How to Disable NetworkManager in CentOS/RHEL 8
  7. Choosing SSSD or Winbind & Samba for Active Directory Integration in CentOS/RHEL
  8. DNS configuration file /etc/named.rfc1912.zones explained
  9. How to find which specific ethernet device corresponds to a specific port on a multi-interface network card in CentOS/RHEL
  10. CentOS / RHEL 5 : How to Configure kdump

You May Also Like

Primary Sidebar

Recent Posts

  • Failed to start LSB: Bring up/down networking – On restarting network service CentOS/RHEL (DHCP client)
  • How To Add Timestamps To dmesg Kernel Boot Log in CentOS/RHEL
  • How to disable ICMP redirects on CentOS/RHEL
  • What are Oracle Key Vault Roles
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary