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