How to install sar (sysstat) on Ubuntu and Debian

banner dedicated


In this tutorial we will explain how to install “sar” sysstat on Ubuntu and Debian Server


Installation of sysstat

apt-get install sysstat -y


Run sysstat

sar -q


If you get this error :

Cannot open /var/log/sysstat/sa15: No such file or directory·


You need to enable sysstat in the config file

nano /etc/default/sysstat

...
# Should sadc collect system activity informations? Valid values
# are "true" and "false". Please do not put other values, they
# will be overwritten by debconf!
ENABLED="true"
...


Restart the service

service sysstat restart


banner dedicated


Colo-Serv Communications has written 32 articles

Premium Dedicated Hosting Services