Customizing Statistics Calculation

During installation of Parallels Plesk Panel several scheduled tasks are automatically created. One of such tasks, statistics, generates statistics on the limits imposed on domains, such as inbound and outbound traffic, the disk space occupied by web content, log files, databases, mailboxes, web applications, mailing list archives, and backup files.

You can vary which data the statistics task should count, thus making the task work faster. To do this, run the statistics task with a necessary combination of options specifying the parts of statistics you want to collect.

To run the statistics task with required options, follow these steps:

  1. Log in the Parallels Plesk Panel server as a user with administrator rights by using Remote Desktop.
  2. Start cmd.exe.
  3. Change directory to %plesk_dir%\admin\bin (where %plesk_dir% is the system variable defining the folder where Parallels Plesk Panel is installed).
  4. Run the statistics.exe task with required options. See the list of options and their descriptions in the tables below.

    For example, to count statistics in the mode that will skip all FTP logs, you can use the following command:

    statistics.exe --http-traffic --disk-usage --mailbox-usage --mail-traffic --notify --update-actions

Main options

Each main option defines the part of statistics to be calculated. When only main options are used, the specified statistics will be collected for all domains.

Option

Description

--mailbox-usage

Disk usage will be calculated for all mail boxes.

--disk-usage

Disk usage for domains and all mail boxes will be calculated.

--http-traffic

HTTP traffic will be calculated.

--ftp-traffic

FTP traffic will be calculated.

--mail-traffic

Mail traffic will be calculated.

Note: Parallels Plesk Panel does not support traffic calculation on hMail and CommunigatePro mail servers.

--notify

Clients traffic will be updates and expiration notifications will be sent.

--update-actions

Action log will be rotated and action events will be launched.

--all

This option is the combination of all previous options, the complete statistics will be collected.

none

When no options are specified, the complete statistics will be collected, like in the case when the --all option is selected.

Additional options

Additional options allow you to specify the set of domains for which the statistics will be calculated. Domain names or masks specified in these options should be separated by ',' or ';' symbol. You may combine additional options and use them without main options. If you use additional options without main ones, complete statistics will be calculated only for selected domains. Domains being specified directly have higher priority then those being specified by masks, also 'skip' list has higher priority then 'process' list.

Option

Description

--process-domains

Only domains specified in this option will be processed.

--process-domain-mask

Only domains corresponding to the mask specified in this option will be processed.

When this options is used and there are no domains corresponding to the specified mask, all the domains will be processed.

--skip-domains

Domains specified by this option will not be processed.

--skip-domain-mask

Domains corresponding to the mask specified by this option will not be processed.

--single-notify

The expiration notification will be sent only to the specified domain.

For information about implementation of permanently customized statistics calculation, consult the "Configuring Statistics" section of the Parallels Plesk Panel for Windows Administrator's Guide.