DA doesn't show ftp bandwidth usage!

Ramin007

Verified User
Joined
Jun 24, 2016
Messages
12
Hi guys.

I'm using proftpd as my ftp server and today I got noticed that ftp bandwidth usage is not calculated.

I transferred about 10GB of files to the to user home directory through ftp (by the user login details) and after updating directadmin bandwidth usage by following command, the ftp bandwidth usage still remains 0 B

echo 'action=tally&value=all' >> /usr/local/directadmin/data/task.queue

Anybody knows about the problem?
 
Hello,

Make sure you have

/var/log/proftpd/1.2.3.4.bytes

and gets filled with stats.

IP 1.2.3.4 should be yours.
 
Yes I have it but it's empty.

-rw-r--r-- 1 root root 0 Sep 28 15:40 <my-ip>.bytes
 
If it's still empty even after you transfer files over FTP, then you should check your /etc/proftpd.conf and make sure that the line with ExtendedLog is present is not commented.
 
This line is not commented.
ExtendedLog /var/log/proftpd/<ip-server>.bytes WRITE,READ userlog

There's a line with ExtendedLog whihc is commented!
#ExtendedLog /var/log/proftpd/paranoid.log ALL default
 
So log file does not get any data even if you upload files over FTP?

What do you see with the following commands?

Code:
ps aux | grep ftp
Code:
netstat -ntpl | grep ftp
Code:
/usr/local/directadmin/custombuild/build options | grep FTP
 
- So log file does not get any data even if you upload files over FTP?
No.

Code:
[root@dl ~]# ps aux | grep ftp
ftp       1967  0.0  0.0 149200  2212 ?        SLs  Sep28   0:02 proftpd: (accepting connections)
root     16007  0.0  0.0 103584   900 pts/0    S+   09:58   0:00 grep ftp


Code:
[root@dl ~]# netstat -ntpl | grep ftp
tcp        0      0 :::21                       :::*                        LISTEN      1967/proftpd

Code:
/usr/local/directadmin/custombuild/build options | grep FTP
returns nothing.
 
And these?

Code:
/usr/local/directadmin/custombuild/build version
Code:
/usr/local/directadmin/custombuild/build options | grep -i FTP
 
Maybe it is related to /etc/fstab configurations?

I've set noexec,nodev,nosuid for some partitinos.


Code:
tmpfs                   /dev/shm                tmpfs   defaults,noexec,nodev,nosuid        0 0
/tmp /var/tmp none bind 0 0
UUID=uuid /tmp                    ext4    rw,noexec,nodev,nosuid        0 0
 
Sufficient free disk space in a root / partition?

Actually no more ideas on what might be wrong. You might need somebody to check it via SSH.
 
Sufficient free disk space in a root / partition?

Actually no more ideas on what might be wrong. You might need somebody to check it via SSH.

yes there's sufficient free disk space in / partition.

I can send you a pm with my SSH Login details.
 
If I do it (please note) I'll charge for it. Feel free to contact me for a quote via PM or via my site (see signature line).
 
Back
Top