SAR (System Activity Report)

Linux Kernel, Network, and Services configuration.
Post Reply
Message
Author
jasonnix
Posts: 30
Joined: 2023-12-04 11:30
Has thanked: 2 times

SAR (System Activity Report)

#1 Post by jasonnix »

Hello,
Does anyone have experience with SAR? I installed SAR, then I activated and executed it using the following commands

Code: Select all

# systemctl enable sysstat
#
# systemctl start sysstat
This program created the file /var/log/sysstat/sa21. I want to know if SAR is automatically recording system activities or need to write cron file?

Thank you.

User avatar
NorthEast
Posts: 358
Joined: 2018-11-18 04:35
Has thanked: 12 times
Been thanked: 31 times

Re: SAR (System Activity Report)

#2 Post by NorthEast »

If /var/log/sysstat/sa21 is created, and sysstat is enabled in /etc/default/sysstat, and systemctl has enabled and started it, then a command like:
sar -u
would normally show output of the current CPU usage for the current day. If it's not working, the output will say that sysstat can't open the relevant file.

Post Reply