set_systemd_timer_to_run_sysstat_every_10_seconds
yum -y install sysstat export SYSTEMD_EDITOR=/usr/bin/vim systemctl edit sysstat-collect.timer cat /etc/systemd/system/sysstat-collect.timer.d/override.conf [Unit] Description=Run system activity accounting tool every 10 seconds # Start 10 seconds after boot and repeat every 10 seconds [Timer] OnBootSec=10s OnUnitActiveSec=10s AccuracySec=1s [Install] WantedBy=sysstat.service systemctl daemon-reload systemctl enable --now sysstat sysstat is now collecting data every 10 seconds. (+1sec execution time / accuracy)
set_systemd_timer_to_run_sysstat_every_10_seconds.txt · Last modified: 2024/12/10 14:06 by admin