Difference between revisions of "Sar installation"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
:: <code>[[apt]] -y install [[sysstat]]; [[sed -i]] 's/ENABLED="false"/ENABLED="true"/g' [[/etc/default/sysstat]] && [[service sysstat restart]] && sar</code> | :: <code>[[apt]] -y install [[sysstat]]; [[sed -i]] 's/ENABLED="false"/ENABLED="true"/g' [[/etc/default/sysstat]] && [[service sysstat restart]] && 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 (SADC_OPTIONS="-S XALL"): <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/AWS AMI: | * [[Red Hat]]/[[Fedora]]/Oracle Linux/AWS AMI: | ||
:: <code>yum -y install sysstat && service sysstat start</code> | :: <code>yum -y install sysstat && service sysstat start</code> |
Revision as of 08:54, 6 February 2023
One line command for installation and basic configuration for collecting :
- Debian/Ubuntu:
apt -y install sysstat; sed -i 's/ENABLED="false"/ENABLED="true"/g' /etc/default/sysstat && service sysstat restart && sar
- Optionally modify collection interval in:
/etc/cron.d/sysstat
- Optionally modify collection options in (
SADC_OPTIONS="-S XALL"
):/etc/sysstat/sysstat
(man sadc
)
yum -y install sysstat && service sysstat start
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. - Installing sysstat using Ansible
See also
Advertising: