• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Statistics process deletes statistics of the previous month

Marco Cristofanilli

Basic Pleskian
When statistics process runs, it deletes the statistics data of the previous month.

Through strace I saw the following commands:

lstat("/var/www/vhosts/domain.com/statistics/webstat/2009-03"
open("/var/www/vhosts/domain.com/statistics/webstat/2009-03"
chdir("/var/www/vhosts/domain.com/statistics/webstat/2009-03") = 0
lstat("awstats.domain.com-http.html"
unlink("awstats.domain.com-http.html")
lstat("index.html"
unlink("index.html")
rmdir("/var/www/vhosts/domain.com/statistics/webstat/2009-03")
lstat("/var/www/vhosts/domain.com/statistics/webstat/2009-04"
unlink("/var/www/vhosts/domain.com/statistics/webstat/current")
symlink("2009-04", "/var/www/vhosts/domain.com/statistics/webstat/current")


The previous data directory is deleted in:
rmdir("/var/www/vhosts/domain.com/statistics/webstat/2009-03") = 0


Why?
 
Back
Top