DA fails to capture proftpd bandwidth usage

vod

Verified User
Joined
Oct 25, 2005
Messages
129
Hi guys,

I found this weird DA tally behaviour. Don’t know whether it is a bug or my misconfiguration. Let me briefly explain my current setting.

Currently I have 3 IPs. 1.2.3.15, 1.2.3.16, 1.2.3..17.

1.2.3.15 is set as server IP.
1.2.3.16 is shared IP owned by reseller. It currently contains 2 accounts only. user1.com and user2.com
1.2.3.17 is free IP

user1.com has a ftp user named doremi.
user2.com has a user called spinpix.

Below is my finding.

1. Connect to server as [email protected] through IP=1.2.3.15
/var/log/profptd/1.2.3.15.bytes captured and logged the transferred bandwidth.
I did a tally. Checked back at DA control panel. The bandwidth usage did not change. Checked user1’s bandwidth.tally file and found this
-- ftp_bw_total=0.000000 --
checked 1.2.3.15.bytes, the content of the file was not removed. If I remember correctly, once a tally is done, .bytes file is usually back to empty. So DA fails to tally the bandwidth usage here.

2. Connect to server as [email protected] through IP=1.2.3.17 .
Since 1.2.3.17 is a free IP, I do not have Virtual Host entry for it in proftpd.vhosts.conf. my proftpd.vhosts.conf only contains virtual host entry for 1.2.3.16
I transferred a file and found that the file size of 1.2.3.15.bytes has changed. issued a "cat 1.2.3.15.bytes" (FYI there is no 1.2.3.17.bytes file) previous ttp transactions logged in file 1.2.3.15.bytes.
I did a tally. Checked back at DA control panel. The bandwidth usage did not change. Checked user1’s bandwidth.tally file and found this ftp_bw_total=0.000000. checked 1.2.3.15.bytes, the content of the file was not removed. Again i couldnt see the ftp bandwidth usage tallied or updated

3. Repeat the above procedure but connect through IP 1.2.3.16. Transaction logged correctly and bandwidth usage updated and reflected in DA control panel

DA fails to tally the usage for the above scenario 1 and 2. Is this a bug or it is a misconfiguration of my copy of DA?

By the way, here is my full proftpd vhosts entry:

<VirtualHost 1.2.3.16>

ServerName "ProFTPd"

ExtendedLog /var/log/proftpd/1.2.3.16.bytes WRITE,READ userlog

AuthUserFile /etc/proftpd.passwd


Thanks
 
Just an update.

John just confirmed that this is a bug and will be fix in the next coming DA release.

thanks
 
Back
Top