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
# logfile is created just after midnight each day so that the 'sar'
# command with always produce output instead of 'file not found'
& 1 0 * * * /usr/lib64/sa/sadc -
# Generate a summary of process accounting each midnight
# This is only the report generation, and is still needed.
%nightly * 23 /usr/lib64/sa/sa2 -A
The part of the script that runs sadc:
Code:
/usr/lib64/sa/sadc -
/usr/lib64/sa/sadc -F -S XALL -L ${sample_rate} - &
where sample_rate is settable. Currently I have it at 900.