Difference between revisions of "Sar installation"
Jump to navigation
Jump to search
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
One line command for installation and basic configuration for collecting : | One line command for installation and basic configuration for collecting : | ||
− | * Debian/Ubuntu: | + | * New Debian/Ubuntu, at least [[Ubuntu 22.04]]: |
− | :: <code>[[apt]] -y install [[sysstat]]; [[sed -i]] 's/ENABLED="false"/ENABLED="true"/g' [[/etc/default/sysstat]] && [[service sysstat | + | ::<code>[[apt -y install sysstat]]; [[systemctl enable --now sysstat]] && [[sar]]</code> |
+ | |||
+ | * Old Debian/Ubuntu: | ||
+ | :: <code>[[apt]] -y install [[sysstat]]; [[sed -i]] 's/ENABLED="false"/ENABLED="true"/g' [[/etc/default/sysstat]] && [[service restart sysstat]] && [[sar]]</code> | ||
::Optionally modify collection interval in: <code>[[/etc/cron.d/sysstat]]</code> | ::Optionally modify collection interval in: <code>[[/etc/cron.d/sysstat]]</code> | ||
::Optionally modify collection options in (<code>[[SADC_OPTIONS]]="[[-S XALL]]"</code>): <code>[[/etc/sysstat/sysstat]]</code> (<code>man sadc</code>) | ::Optionally modify collection options in (<code>[[SADC_OPTIONS]]="[[-S XALL]]"</code>): <code>[[/etc/sysstat/sysstat]]</code> (<code>man sadc</code>) | ||
− | * [[Red Hat]]/[[Fedora]]/Oracle Linux/ | + | * [[Red Hat]] / [[Fedora]] / [[Oracle Linux]] / [[Amazon Linux]]: |
− | :: <code>yum -y install sysstat && service sysstat start</code> | + | :: <code>[[yum -y install sysstat]] && [[service sysstat start]]</code> |
− | + | ::: <code>[[/etc/cron.d/sysstat]]</code> | |
+ | ::: <code>[[/etc/sysconfig/sysstat]]</code> | ||
Installing sar Debian, you have to install sysstat package that includes sar and some other performance tools: | Installing sar Debian, you have to install sysstat package that includes sar and some other performance tools: | ||
− | * <code>[[apt | + | * <code>[[apt -y install]] sysstat</code> |
* Checking installation: <code>[[dpkg]] -l sysstat</code> | * Checking installation: <code>[[dpkg]] -l sysstat</code> | ||
* Binaries installed in ''/usr/bin/'' directory: <code>dpkg -L sysstat | grep "/usr/bin"</code>. Sysstat package contains sar and some other utilities. | * Binaries installed in ''/usr/bin/'' directory: <code>dpkg -L sysstat | grep "/usr/bin"</code>. Sysstat package contains sar and some other utilities. | ||
Line 16: | Line 20: | ||
== Related == | == Related == | ||
* [[Installing sysstat using Ansible]] | * [[Installing sysstat using Ansible]] | ||
+ | * <code>[[systemctl enable --now sysstat]]</code> | ||
+ | * [[Add line]] | ||
== See also == | == See also == | ||
* {{sar}} | * {{sar}} | ||
+ | * {{sysstat}} | ||
[[Category:Performance]] | [[Category:Performance]] |
Latest revision as of 14:17, 15 March 2024
One line command for installation and basic configuration for collecting :
- New Debian/Ubuntu, at least Ubuntu 22.04:
- Old Debian/Ubuntu:
apt -y install sysstat; sed -i 's/ENABLED="false"/ENABLED="true"/g' /etc/default/sysstat && service restart sysstat && sar
- Optionally modify collection interval in:
/etc/cron.d/sysstat
- Optionally modify collection options in (
SADC_OPTIONS="-S XALL"
):/etc/sysstat/sysstat
(man sadc
)
- Red Hat / Fedora / Oracle Linux / Amazon Linux:
Installing sar Debian, you have to install sysstat package that includes sar and some other performance tools:
apt -y install sysstat
- Checking installation:
dpkg -l sysstat
- Binaries installed in /usr/bin/ directory:
dpkg -L sysstat | grep "/usr/bin"
. Sysstat package contains sar and some other utilities.
Related[edit]
See also[edit]
sar
, installation, sar -A,sar -F, sar -d
,sar -I ALL
,sar -n NFS
,sar -r
,sar -S
,sar -W
,sar -n ALL
, Installing sysstat using Ansible,/etc/sysstat/sysstat
,/etc/cron.d/sysstat
,sar --help
, Sysstat changelog,/var/log/sysstat/
,cpu time steal
, sargraph, isag, Telegraf- Performance: sysstat,
sar
,sadc
,debian-sa1
,sa1, sa2
,iostat
,nfsiostat
mpstat
,changelog
,/usr/lib/sysstat/sadc
,/etc/sysstat/sysstat
,pidstat, irqstat
Advertising: