Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

How it works...

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) ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content