Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jarek-przygodzki/02d14cbbf6cf37a7aaf4d739db9ccc6e to your computer and use it in GitHub Desktop.
Save jarek-przygodzki/02d14cbbf6cf37a7aaf4d739db9ccc6e to your computer and use it in GitHub Desktop.
Install SysStat on Centos 8
# 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