I am not sure about ubuntu but in Fedora node,here is the scenario
[root@test ~]# cat /etc/cron.d/sysstat
Run system activity accounting tool every 10 minutes
*/10 * * * * root /usr/lib64/sa/sa1 1 1
Generate a daily summary of process accounting at 23:53
53 23 * * * root /usr/lib64/sa/sa2 -A
If you open any of these scripts
less /usr/lib64/sa/sa1
SYSCONFIG_DIR=/etc/sysconfig
[ -r ${SYSCONFIG_DIR}/sysstat ] && . ${SYSCONFIG_DIR}/sysstat
if [ ${HISTORY} -gt 28 ]
then
CURRENTDIR=`date +%Y%m`
DATE=`date +%d`
CURRENTFILE=sa${DATE}
DDIR=/var/log/sa <-----------------------------
cd ${DDIR} || exit 1
Check DDIR variable,so look like its hardcoded here,so if you want to give any customize/change path you can add here.