Monday, June 10, 2019

SAR: System Activity Reporter

SAR: System Activity Reporter(Available in systat package)

SAR is useful in understanding previous 10days statistics also, implies in go back in time.
sadc is the backend data collector for SAR.

SAR comes with two tools called sa1 and sa2

sa1: every 10 minutes(binary report)
sa2: summarize collected data each day(text file)

Both sa1 and sa2(sar) files will be loacted under /var/log/sa

Config file locations:
Ubuntu: /etc/default/sysstat - enable to true
CentOS: /etc/sysconfig/sysstat

SAR is basically a cron jobs
Ubuntu: /etc/cron.d/sysstat
Fedora systemd timer: /etc/systemd/system/sysstat.service.wants/sysstat-collect.timer (for sa1) & summary.timer (for sa2)

***

No comments:

Post a Comment