changing sysstat interval on systemctl
Taegu Kang
1 min read
- outline
Chaging interval of SAR cron 10 minutes to 1 minitu on CentOS 9
- how-to
>> sudo systemctl edit --full sysstat-collect.timer
## change 10 -> 1
>> systemctl daemon-reload
>> systemctl cat sysstat-collect.timer
# /etc/systemd/system/sysstat-collect.timer
# /usr/lib/systemd/system/sysstat-collect.timer
# (C) 2014 Tomasz Torcz <tomek@pipebreaker.pl>
#
# sysstat-12.5.6 systemd unit file:
# Activates activity collector every 1 minutes
[Unit]
Description=Run system activity accounting tool every 1 minutes
[Timer]
OnCalendar=*:00/1
[Install]
WantedBy=sysstat.service
>> systemctl restart sysstat.service
>> sar -q
0
Subscribe to my newsletter
Read articles from Taegu Kang directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by