Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

SAR (System Activity Report)

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

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: 351
Joined: 2018-11-18 04:35
Has thanked: 12 times
Been thanked: 30 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