Statistics of previous months get deleted if "Retain web and traffic statistics" value is set to zero

Refers to:

  • Plesk 10.4 for Linux
  • Plesk 12.0 for Linux
  • Plesk 10.x and below for Linux

Created:

2016-11-16 13:05:23 UTC

Modified:

2016-12-21 19:55:49 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Statistics of previous months get deleted if "Retain web and traffic statistics" value is set to zero

Symptoms

Previous months' statistics get deleted after performing domain's statistics recalculation:

/usr/local/psa/admin/bin/statistics --calculate-one --domain-name=domain.tld

if Retain web and traffic statistics value of the corresponding domain is set to 0 using CLI, which according to the /usr/local/psa/bin/service_plan utility should be specified to keep all statistics:

# /usr/local/psa/bin/service_plan --help | grep -A2 keep_traf_stat
-keep_traf_stat <number> Sets the system to retain traffic
statistics for N months (specify 0 if
you do not wish to delete statistics)

Cause

Such behavior was confirmed to be a software issue that should be fixed in one of the future releases, the internal issue with ID # PPPM-1411 has been submitted.

Please be informed that the issue is reported as fixed on latest Plesk Panel 11.5 version.

Resolution

As a workaround you can set the keep_traf_stat value to 9999999999999:

# /usr/local/psa/bin/service_plan -u "Domain Simple" -keep_traf_stat 9999999999999
Have more questions? Submit a request
Please sign in to leave a comment.