A question about SAR (System Activity Report) command
Hello,
I use Debian and installed sysstat, then I activated and executed SAR using the following commands: Code:
# systemctl enable sysstat Thank you. |
I'm not on Debian and we don't have systemd, but here I have to start the collector and tell it when to run via a startup script. Fcron runs reports at various times. The script that comes with it leaves much to be desired so I wrote a different one.
Here's systab's fcron tab snippet for sar: Code:
# Enter a "Restart" mark in the logfile for sadc and make sure that Code:
/usr/lib64/sa/sadc - |
Quote:
Thank you so much for your reply. Do you think it is necessary to write a cron file on Debian? |
If you don't care about the report file, then I'd say you don't need it. See the 'sa2' man page about that.
|
It records automatically. Just make sure Enabled is True in the file /etc/default/sysstat
Restart sysstat after updating it. sudo systemctl restart sysstat Historical files are found in /var/log/systat, filename with day. You can check the statistics of that day. |
Quote:
Thank you so much for you reply. I have some questions: 1- In the /etc/default/sysstat file, the value was ENABLED="false", but the report was generated for each day. Why? 2- There are two types of files in the /var/log/systat directory, some starting with sa and some starting with sar. What is their difference? Code:
sa01 sa23 sa25 sa27 sa29 sar22 sar24 sar26 sar28 |
All times are GMT -5. The time now is 06:30 AM. |