User Tools

Site Tools


pages:howtos:suse:sysstat

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pages:howtos:suse:sysstat [2021/12/09 01:43] rokkitlawnchairpages:howtos:suse:sysstat [2021/12/09 23:34] (current) rokkitlawnchair
Line 1: Line 1:
 {{tag>howto suse tumbleweed sysstat sar iostat}} {{tag>howto suse tumbleweed sysstat sar iostat}}
 ====== Sysstat ====== ====== Sysstat ======
 +  * http://sebastien.godard.pagesperso-orange.fr/features.html
 +  * http://sebastien.godard.pagesperso-orange.fr/tutorial.html
 +  * https://www.linux.com/training-tutorials/sysstat-howto-deployment-and-configuration-guide-linux-servers/
 +
 <sxh bash; gutter: false> <sxh bash; gutter: false>
 zypper in sysstat zypper in sysstat
 systemctl enable sysstat systemctl enable sysstat
 systemctl start sysstat systemctl start sysstat
 +vim /etc/sysconfig/sysstat
 </sxh> </sxh>
  
 +<sxh bash; title: /etc/sysconfig/sysstat>
 +# sysstat configuration file.
 +
 +# How long to keep log files (in days).
 +# If value is greater than 28, then log files are kept in
 +# multiple directories, one for each month.
 +HISTORY=28
 +
 +# Compress (using gzip or bzip2) sa and sar files older than (in days):
 +COMPRESSAFTER=31
 +
 +# Parameters for the system activity data collector (see sadc manual page)
 +# which are used for the generation of log files.
 +SADC_OPTIONS="-S DISK"
 +
 +# Compression program to use.
 +ZIP="bzip2"
 +</sxh>
 +
 +<sxh bash; gutter: false>
 +cat /usr/lib/systemd/system/sysstat-collect.timer
 +</sxh>
 +
 +  # /usr/lib/systemd/system/sysstat-collect.timer
 +  # (C) 2014 Tomasz Torcz <tomek@pipebreaker.pl>
 +  #
 +  # sysstat-12.4.3 systemd unit file:
 +  #        Activates activity collector every 10 minutes
 +  
 +  [Unit]
 +  Description=Run system activity accounting tool every 10 minutes
 +  
 +  [Timer]
 +  OnCalendar=*:00/10
 +  
 +  [Install]
 +  WantedBy=sysstat.service
 +
 +<sxh bash; gutter: false>
 +journalctl -g sysstat-collect.service
 +</sxh>
  
 +----
 +~~DISCUSSION~~
pages/howtos/suse/sysstat.1639014212.txt.gz · Last modified: 2021/12/09 01:43 by rokkitlawnchair