Created
March 22, 2021 09:08
-
-
Save jarek-przygodzki/02d14cbbf6cf37a7aaf4d739db9ccc6e to your computer and use it in GitHub Desktop.
Install SysStat on Centos 8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Installation | |
$ dnf -y install sysstat | |
$ systemctl enable --now sysstat | |
# create a new config to override the default 10 minutes | |
$ systemctl edit sysstat-collect.timer | |
[Unit] | |
Description=Run system activity accounting tool every minute | |
[Timer] | |
OnCalendar= | |
OnCalendar=*:00/1 | |
AccuracySec=0 | |
# Troubleshooting | |
show timers | |
$ systemctl list-timers sysstat-* | |
NEXT LEFT LAST PASSED UNIT ACTIVATES | |
Mon 2021-03-22 10:04:00 CET 10s left Mon 2021-03-22 10:03:00 CET 49s ago sysstat-collect.timer sysstat-collect.service | |
Tue 2021-03-23 00:07:00 CET 14h left n/a n/a sysstat-summary.timer sysstat-summary.service | |
# old timer config | |
$ grep -A 1 'Timer' /usr/lib/systemd/system/sysstat-collect.timer | |
# new timer config | |
$ grep -A 2 'Timer' /etc/systemd/system/sysstat-collect.timer.d/override.conf | |
[Timer] | |
OnCalendar= | |
OnCalendar=*:00/1 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment