• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

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