sar installation

From wikieduonline
Revision as of 14:17, 15 March 2024 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

One line command for installation and basic configuration for collecting :

apt -y install sysstat; systemctl enable --now sysstat && sar
  • 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)
yum -y install sysstat && service sysstat start
/etc/cron.d/sysstat
/etc/sysconfig/sysstat

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]

Advertising: