Operation Manual
NOTE: sysstat package
sar and sadc are part of sysstat package. you need to install the package
either with YaST, or with zypper in sysstat.
Automatically Collecting Daily Statistics With sadc
If you want to monitor your system about a longer period of time, use sadc to automat-
ically collect the data. You can read this data at any time using sar. To start sadc,
simply run /etc/init.d/boot.sysstat start. This will add a link to /etc/
cron.d/ that calls sadc with the following default conguration:
• All available data will be collected.
•
Data is written to /var/log/sa/saDD, where DD stands for the current day. If
a le already exists, it will be archived.
•
The summary report is written to /var/log/sa/sarDD, where DD stands for
the current day. Already existing les will be archived.
• Data is collected every ten minutes, a summary report is generated every 6 hours
(see /etc/sysstat/sysstat.cron).
•
The data is collected by the /usr/lib64/sa/sa1 script (or /usr/lib/sa/
sa1 on 32bit systems)
•
The summaries are generated by the script /usr/lib64/sa/sa2 (or /usr/
lib/sa/sa2 on 32bit systems)
If you need to customize the conguration, copy the sa1 and sa2 scripts and adjust
them according to your needs. Replace the link /etc/cron.d/sysstat with a
customized copy of /etc/sysstat/sysstat.cron calling your scripts.
Generating reports with sar
To generate reports on the y, call sar with an interval (seconds) and a count. To
generate reports from les specify a lename with the option -f instead of interval
and count. If lename, interval and count are not specied, sar attempts to generate
System Monitoring Utilities 177










