Data collection

sudo systemctl enable --now sysstat.service

This enables and activates both sysstat-collect.timer and sysstat-summary.timer, which perform data collection and summarization.

Use the following command to check if systemd timers exist:

systemctl list-unit-files | grep sysstat

On ancient versions of Ubuntu and Debian, you may need sed -i 's/^ENABLED="false"/ENABLED="true"/' /etc/default/sysstat instead.