How to recalculate statistics for a particular domain in Plesk

Follow

Comments

6 comments

  • Avatar
    Gilberto

    Hi, if I recalculate the statistics, my customer are suspend after a night. Is there a job scheduled? Which job? Can I test it and, in test phase, suspend immediately a test-customer?

     

    0
    Comment actions Permalink
  • Avatar
    Alisa Kasyanova

    @Gilberto
    Statistics are calculated during Daily Tasks' "ExecuteStatistics" part. You may run it separately like this (if you use Windows) or this (if you use Linux).
    Customer gets suspended most likely because of exceeded limits (please check this article).

    0
    Comment actions Permalink
  • Avatar
    Bob B

    Would running "/usr/local/psa/admin/sbin/statistics --calculate-one --domain-name=example.com" also rotate the logs, for that domain, if the logs were above the size threshold specified in the log rotation settings for the domain?  Can I add a scheduled task for command to run for a domain whose logs grow very large before the daily log rotation occurs?

    0
    Comment actions Permalink
  • Avatar
    Alisa Kasyanova

    @Bob B
    Yes, this command also runs the log rotation, as well as the statistics recalculation.

    0
    Comment actions Permalink
  • Avatar
    Johannes Fuchs

    if i had email notification enabled for abo quota exceeds, will that be triggered too with that command?

    0
    Comment actions Permalink
  • Avatar
    Francisco Garcia

    Hi Johannes Fuchs,

    It shoudn't as in my opinion the notification is sent by the daily task, not by the utility that calculates the statistics.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Have more questions? Submit a request