• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

How to track inbound HTTP traffic using Plesk 10.4.4?

H

hc_kpid

Guest
I am running Plesk 10.4.4 on a Debian 6.0 server. The outbound traffic is being tracked but the inbound http traffic seems to be 0 at all times, i.e. looking at the DomainsTraffic and ClientsTraffic the http_in column is always 0.

Is this a setting that I have missed? I've had a look and cannot find anything. How do I get Plesk to track the inbound HTTP traffic?

I have already made sure that Home > Tools & Settings > Server settings had 'Include in the traffic calculation' set to 'inbound and outbound traffic', yet this does not solve the problem.

Apache allows inbound traffic to be logged using %I in the log format, is there a way to get Plesk to add the %I to the log and then use that in bandwidth calculations?
 
Do you mean that outbound traffic is constantly calculated but inbound traffic not?
Try to make a test:

1. Make sure that traffic accounting is set to account both inbound and outbound traffic on 'Tools & Settings' -> 'Server settings'.

2. Create test subscription with physical hosting.

3. Upload some file by FTP (not from localhost though, since it will not be accounted.)

4. Run daily maintenance task:

# export PLESK_DEBUG_LEVEL=4
# /usr/local/psa/bin/sw-engine-pleskrun /usr/local/psa/admin/plib/DailyMaintainance/script.php

5. Check output and result.
 
Hi Igor,

Thank you very much for your help. The FTP seems to work fine, it's the HTTP in traffic that does not seem to work. Only outbound HTTP traffic is tracked. Inbound is always 0 even though the outbound is over 1GB per day.
 
Thank you for your help. Here is the output, it doesn't seem to tell me anything though.

[Thu, 24 May 2012 09:59:48 +0100] > 0 Starting: Daily Maintainance
[Thu, 24 May 2012 09:59:48 +0100] > 0 == Begin Check for updates
[Thu, 24 May 2012 09:59:48 +0100] > 0 Last updates or upgrades check has been made at 2012-05-23T06:25:23+01:00
[Thu, 24 May 2012 09:59:48 +0100] > 0 == End Check for updates
[Thu, 24 May 2012 09:59:48 +0100] > 0 == Begin Installation of updates
[Thu, 24 May 2012 09:59:48 +0100] > 0 == End Installation of updates
[Thu, 24 May 2012 09:59:48 +0100] > 0 == Begin Update keys
[Thu, 24 May 2012 09:59:48 +0100] > 0 updating scheduled keys
[Thu, 24 May 2012 09:59:48 +0100] > 0 update resultCode=2 resultDesc=Key update disabled
[Thu, 24 May 2012 09:59:48 +0100] > 0 running kavnever workaround
[Thu, 24 May 2012 09:59:48 +0100] > 0 == End Update keys
[Thu, 24 May 2012 09:59:48 +0100] > 0 == Begin Collect Plesk usage statistics
[Thu, 24 May 2012 09:59:48 +0100] > 0 == End Collect Plesk usage statistics
[Thu, 24 May 2012 09:59:48 +0100] > 0 == Begin Process autoreports
[Thu, 24 May 2012 09:59:48 +0100] > 0 == End Process autoreports
[Thu, 24 May 2012 09:59:48 +0100] > 0 == Begin Sitebuilder management
[Thu, 24 May 2012 09:59:48 +0100] > 0 == End Sitebuilder management
[Thu, 24 May 2012 09:59:48 +0100] > 0 == Begin Mail boxes usage
[Thu, 24 May 2012 09:59:48 +0100] > 0 == End Mail boxes usage
[Thu, 24 May 2012 09:59:48 +0100] > 0 == Begin Execute statistics backend
[Thu, 24 May 2012 10:02:43 +0100] > 0 == End Execute statistics backend
[Thu, 24 May 2012 10:02:43 +0100] > 0 == Begin Optimize statistics
[Thu, 24 May 2012 10:02:43 +0100] > 0 Calc client traffic.
[Thu, 24 May 2012 10:02:43 +0100] > 0 Remove expired client traffic.
[Thu, 24 May 2012 10:02:43 +0100] > 0 Collapse domain traffic.
[Thu, 24 May 2012 10:02:43 +0100] > 0 Collapse client traffic.
[Thu, 24 May 2012 10:02:43 +0100] > 0 == End Optimize statistics
[Thu, 24 May 2012 10:02:43 +0100] > 0 == Begin Analyse domain statistics
[Thu, 24 May 2012 10:02:43 +0100] > 0 processing domains
[Thu, 24 May 2012 10:02:43 +0100] o 0 *****.com
[Thu, 24 May 2012 10:02:43 +0100] o 0 *****.net
[Thu, 24 May 2012 10:02:43 +0100] o 0 sugar.*****.com
[Thu, 24 May 2012 10:02:43 +0100] o 0 *****.com
[Thu, 24 May 2012 10:02:43 +0100] > 0 == End Analyse domain statistics
[Thu, 24 May 2012 10:02:43 +0100] > 0 == Begin Analyse client statistics
[Thu, 24 May 2012 10:02:43 +0100] > 0 processing client
[Thu, 24 May 2012 10:02:43 +0100] o 0 admin (Klaus-Peter *****)
[Thu, 24 May 2012 10:02:43 +0100] o 0 ***** (Editor)
[Thu, 24 May 2012 10:02:43 +0100] o 0 ***** (Luke *****)
[Thu, 24 May 2012 10:02:43 +0100] > 0 == End Analyse client statistics
[Thu, 24 May 2012 10:02:43 +0100] > 0 == Begin Execute training spam filter
[Thu, 24 May 2012 10:02:43 +0100] > 0 == End Execute training spam filter
[Thu, 24 May 2012 10:02:43 +0100] > 0 == Begin Execute greylisting database cleaner
[Thu, 24 May 2012 10:02:43 +0100] > 0 == End Execute greylisting database cleaner
[Thu, 24 May 2012 10:02:43 +0100] > 0 == Begin Execute apache configuration rotation
[Thu, 24 May 2012 10:02:43 +0100] > 0 == End Execute apache configuration rotation
[Thu, 24 May 2012 10:02:43 +0100] > 0 == Begin PPSMBE File Sharing
[Thu, 24 May 2012 10:02:43 +0100] > 0 Clean up unlisted shared files
[Thu, 24 May 2012 10:02:43 +0100] > 0 == End PPSMBE File Sharing
[Thu, 24 May 2012 10:02:43 +0100] > 0 == Begin Upgrade of Plesk
[Thu, 24 May 2012 10:02:43 +0100] > 0 Starting upgrade of Plesk
[Thu, 24 May 2012 10:02:43 +0100] > 0 == End Upgrade of Plesk
[Thu, 24 May 2012 10:02:43 +0100] > 0 Finish: Daily Maintainance

Looking at the database the http_in column for both the ClientsTraffic and DomainsTraffic are still 0.

It seems that I am missing something, I cannot figure out what though.
 
Where does the update script get the data for http_in from?
 
It is collected by /usr/local/psa/admin/bin/statistics utility.
 
But where does that utility get the data from? Is it just from the Apache logs?
 
Do you have any visible results if you add inbound traffic with help of traffic utility?
 
That works a treat, it just doesn't seem to do it on a day-to-day basis from actual usage. Is there some Apache log setting that I need to edit or add to?
 
Last edited by a moderator:
Alternatively, is there a way to add an additional log to a site? That way I could just add a simple log that logs the %I and manually update the stats?
 
Back
Top