PDA

View Full Version : Directadmin usage statistics wrong



planepix
11-11-2005, 08:59 AM
Hi there,

I've got a colocated server, running directadmin on it.

My hosts' switch is telling that the server is using about 70 GB of traffic every month, while Directadmin is tellling its about 20 GB / month.

There aren't any other apps running on the server who can use the traffic.

So are directadmins metings so wrong or is it something else?

jmstacey
11-11-2005, 09:08 AM
What does the following give you when run on the command line?

/usr/bin/netstat -f inet -b -I ethernet_device

Reference: http://www.directadmin.com/forum/showthread.php?s=&threadid=2626&highlight=bug

planepix
11-11-2005, 11:40 AM
-bash: /usr/bin/netstat: No such file or directory

:x

jmstacey
11-11-2005, 03:06 PM
What Operating System are you running?
I should have mentioned, that was for FreeBSD.

planepix
11-12-2005, 06:12 AM
Fedora core 3 :)

hostpc.com
11-12-2005, 11:59 AM
Try /bin/netstat -i inet eth0

planepix
11-12-2005, 03:05 PM
[root@server1 ~]# /bin/netstat -i inet eth0
Kernel Interface table
Iface MTU Met RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0 1500 0 49826263 0 0 0 50686315 0 0 0 BMRU
eth0:0 1500 0 0 0 0 0 0 0 0 0 BMRU
eth0:1 1500 0 0 0 0 0 0 0 0 0 BMRU
lo 16436 0 166670 0 0 0 166670 0 0 0 LRU


Directadmin:
Used
Disk Space (mb) 2506.6
Bandwidth (gb) 32.553

Switch:
72.55GB

Is there a possibility that the switch is trying to predict how much i'm going to use or something?