Ispmanager 6 lite, pro, host

User traffic

The User Traffic section is available only on the host tariff.
  • Administrators and resellers can see the total traffic of all users and traffic of a selected user.
  • Users can see the total traffic of their sites and all FTP users as well as traffic of a selected site/FTP user.

Traffic information for sites will only be available if the Nginx web server is installed on the server.

Generation of report

  1. Go to the User Traffic section (Traffic Usage section for users).
  2. In the Period field, select the period which the report will be displayed for, or specify any range.
  3. In the Owner field (available for administrators only), select the owner of the users that will be displayed in the report.
  4. Click Create.

Report

The report contains the following fields:

  • User (available to administrators and resellers) — list of users, whose data is presented in the table.
  • Owner (available to administrators only) — the administrator or reseller the user belongs to.
  • Incoming traffic.
  • Outgoing traffic.

To see user statistics: click on the user name → in the Period field, select a period or specify an arbitrary range → click Save.

To see statistics for a site or an FTP user, click the name of the site/FTP user.

Details

Collecting statistics

Statistics are generated based on log files:

  • For sites, based on the specially configured access log /usr/local/mgr5/var/nginx.log.
  • For FTP users:
    • In case ProFTP is used: /usr/local/mgr5/var/xferlog
    • In case PureFTP is used: /var/log/pure-ftpd/transfer.log for Debian-like OS, /var/log/pureftpd.log for RH-like OS.

Statistics are generated using the following methods:

  • collect_traf_stat — analyzes logs with an interval equal to the value of TraffStatCollectPeriod parameter in minutes (by default, once every 5 minutes).
  • collect_traf_monthly_stat — averages statistics for the previous day with an interval equal to the value of TraffStatCollectDailyPeriod parameter in minutes (by default. 1440 minutes, i.e. 24 hours).

The methods can be run manually using commands in the console:

mgrctl -m ispmgr collect_traf_stat
mgrctl -m ispmgr collect_traf_monthly_stat

  If run more often than the values of AcctStatCollectPeriod and AcctStatCollectDailyPeriod parameters, statistics will not be collected.  

Storing statistics

Statistics are written to the files:

  • /usr/local/mgr5/var/stat/daily/traff_stat/@<owner>/@<type>/@<entity name>/@<year><month><number>.stat — for the collect_traf_stat method (only files with statistics for the last two days are stored).
  • /usr/local/mgr5/var/stat/monthly/traff_stat/@<owner>/@<type>/@<entity name>/<year><month>.stat — for the collect_traf_monthly_stat method.

Details