How to set up the sadc cron job on SLES12
This document (7022672) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 12 Service Pack 1 (SLES 12 SP1)
SUSE Linux Enterprise Server 12 Service Pack 2 (SLES 12 SP2)
SUSE Linux Enterprise Server 12 Service Pack 3 (SLES 12 SP3)
Situation
Resolution
This cron job can be enabled permanently in two steps:
1. Start the service to begin data collection:
hostname:~ # systemctl start sysstat.service
2. Enable the service so it is started automatically on next boot:
hostname:~ # systemctl enable sysstat.service
Cause
Additional Information
By default, system activity data are collected every ten minutes and written to /var/log/sa/sa## data files, where ## corresponds to the day of the month. These data files can be read with the "sar" program. This is the sa1 component of sadc.
A daily report is run every six hours which parses the sa## data files and outputs the activity information into to text files. These text reports are written to /var/log/sa/sar##. This is the sa2 component of sadc.
The frequency of either one of these crons can be changed in the /etc/sysstat/sysstat.cron file.
More details about these features are available in their respective man pages.
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7022672
- Creation Date: 20-Feb-2018
- Modified Date:03-Mar-2020
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com