December 2018
Beginner
826 pages
22h 54m
English
As with our previous section, out of the box, a lot of the atop and sar setup is done for you, but further configuration changes can be made in the relevant configuration files for the processes.
Under CentOS, these live in /etc/sysconfig, as is traditional:
$ cat /etc/sysconfig/atop # sysconfig atop## Current Day formatCURDAY=`date +%Y%m%d`# Log files pathLOGPATH=/var/log/atop# Binaries pathBINPATH=/usr/bin# PID FilePIDFILE=/var/run/atop.pid# interval (default 10 minutes)INTERVAL=600
$ cat /etc/sysconfig/sysstat# sysstat-10.1.5 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) ...