How to enable systat logging on an Ubuntu server Print

  • 0

Introduction

Sometimes sysstat will be installed, but not collecting data. Running the sar command will show output similar to the following.

[root@server ~]cPs# sar
Cannot open /var/log/sysstat/sa20: No such file or directory
Please check if data collecting is enabled
[root@server ~]cPs#

 

Procedure

  1. Access the server's command line as the 'root' user via SSH or "Terminal" in WHM.
  2. Open the /etc/default/sysstat file in your preferred text editor.
  3. Change the value of the ENABLED line to "true".
    ENABLED="true"
  4. Save the changes and exit the text editor.
  5. Restart the sysstat service.
    systemctl restart sysstat.service

Was this answer helpful?
Back

Send Message