CPanel / WHM, Uncategorized

Log folder contents deleted getting error mails

Log folder contents deleted getting cron mails and getting below error.

Cannot open /var/log/sa/sa03: No such file or directory

 

Login to server via SSH

Go inside /var/log/ folder

cd /var/log/

Check for sa folder, if it is not present then create it manually using below command. Files will be generated automatically inside that folder

mkdir sa

To check try running sar command after 1 to  hours it will start working.