sysstat | sysstat-ops | sysstat-graph
* * () * * * * /\ * * /i\\ * * * o/\\ * * * ///\i\ * * /*/o\\ * * * /i//\*\ * /o/*\\i\ * * //i//o\\\\ * * /*////\\\\i\* * //o//i\\*\\\ * * /i///*/\\\\\o\ * * * || * jrei
apt install sysstat systemctl status sysstat.service # ubuntu20: enabled but not started/exited systemctl restart sysstat.service
enable the unattended mode
mv -i /etc/default/sysstat /etc/default/sysstat.dist echo ENABLED=true > /etc/default/sysstat find /etc/cron* | grep sysstat cat /etc/cron.d/sysstat cat /etc/cron.daily/sysstat
slackpkg search sysstat slackpkg install sysstat ls -lF /etc/rc.d/rc.sysstat /etc/rc.d/rc.sysstat restart ls -lF /usr/lib64/sa/sa1 ls -lF /usr/lib64/sa/sa2 crontab -e */5 * * * * /usr/lib64/sa/sa1 1 1 59 02 * * * /usr/lib64/sa/sa2 -A 00 03 * * * /usr/lib64/sa/sa1 --rotate iso # /root/sysstat-graphs.bash
tune the unattended mode, we don’t need inode nor space usage (XALL
), we only want performance metrics
mv -i /etc/sysstat/sysstat /etc/sysstat/sysstat.dist grep -vE '^#|^$' /etc/sysstat/sysstat.dist > /etc/sysstat/sysstat vi /etc/sysstat/sysstat #SADC_OPTIONS="-S DISK" SADC_OPTIONS="-S ALL"
sar -V
see sysstat-ops
https://github.com/sysstat/sysstat/tags
http://sebastien.godard.pagesperso-orange.fr/documentation.html
linux server administration/sar https://en.wikiversity.org/wiki/Linux_server_administration/sar
https://englanders.us/~jason/howtos/?howto=sysstat
Linux server administration/atop https://en.wikiversity.org/wiki/Linux_server_administration/atop