LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Why None Of These Programs Work On a VPS? (https://www.linuxquestions.org/questions/linux-newbie-8/why-none-of-these-programs-work-on-a-vps-796861/)

p8xc8gji 03-21-2010 10:12 AM

Why None Of These Programs Work On a VPS?
 
I'm trying to check my server's bandwidth usage in real time, installed the following programs but none worked so far.

Iptraf - No results even when using iptraf -u
Tcptrack - Error : pcap_loop: cooked-mode frame doesn't have room for sll header
Iftop - No results, everything 0b

Are there any programs that displays bandwidth usage in real time and actually works on VPSes? Or getting real time bandwidth usage on a VPS is simply impossible?

Thanks.

Tinkster 03-21-2010 01:44 PM

That's going to depend on what the interfaces represent themselves
as, I'll guess. Got shell? What's the result of
ifconfig
?

p8xc8gji 03-22-2010 04:21 AM

Quote:

Originally Posted by Tinkster (Post 3906724)
That's going to depend on what the interfaces represent themselves
as, I'll guess. Got shell? What's the result of
ifconfig
?

All the network interfaces are in the format "venet0:X", and below is the output of ifconfig :

Code:

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1257021 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1257021 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:162489088 (154.9 MiB)  TX bytes:162489088 (154.9 MiB)

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:127.0.0.1  P-t-P:127.0.0.1  Bcast:0.0.0.0  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:25403418 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36578834 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:11847397000 (11.0 GiB)  TX bytes:44624413717 (41.5 GiB)

venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:67.222.***.***  P-t-P:67.222.***.***  Bcast:67.222.***.***  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

venet0:1  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:67.222.***.***  P-t-P:67.222.***.***  Bcast:67.222.***.***  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

venet0:2  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:67.222.***.***  P-t-P:67.222.***.***  Bcast:67.222.***.***  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

venet0:3  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:67.222.***.***  P-t-P:67.222.***.***  Bcast:67.222.***.***  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

venet0:4  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:67.222.***.***  P-t-P:67.222.***.***  Bcast:67.222.***.***  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

venet0:5  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:67.222.***.***  P-t-P:67.222.***.***  Bcast:67.222.***.***  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

venet0:6  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          inet addr:67.222.***.***  P-t-P:67.222.***.***  Bcast:67.222.***.***  Mask:255.255.255.255
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1


Tinkster 03-22-2010 11:23 AM

So what happens when you try

Code:

iptraf -s venet0
(seeing as it's the one with the most traffic I'll assume it's what
your server talks on the big bad world)?

p8xc8gji 03-22-2010 12:17 PM

Quote:

Originally Posted by Tinkster (Post 3907690)
So what happens when you try

Code:

iptraf -s venet0
(seeing as it's the one with the most traffic I'll assume it's what
your server talks on the big bad world)?

Yeah, It returned the following :

Code:

Specified interface not supported
Press a key to continue

Guess there's no other way / workarounds expect getting a *real* dedicated box? :cry:

Tinkster 03-22-2010 12:19 PM

Dunno ... you may look at something like using iptables & the ulog
target to get your totals. Or check whether you can get the other
tools to play with that interface.


All times are GMT -5. The time now is 02:06 AM.