i need help with bandwith

adamp

Verified User
Joined
Jan 11, 2007
Messages
137
someone can tell me what I need to write that the server show me
how much bandwith is using...
 
Code:
cd /usr/local/src
wget http://www.gropp.org/bwm-ng/bwm-ng-0.6.tar.gz
tar xzf  bwm-ng-0.6.tar.gz
cd bwm-ng-0.6
./configure
make
make install
bwm-ng

Every time you want to use it, just type: bwm-ng.
 
[root@server bwm-ng-0.6]# make
make all-recursive
make[1]: Entering directory `/usr/local/src/bwm-ng-0.6'
Making all in src
make[2]: Entering directory `/usr/local/src/bwm-ng-0.6/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -Wno-long-long -MT bwm-ng.o -M D -MP -MF ".deps/bwm-ng.Tpo" -c -o bwm-ng.o bwm-ng.c; \
then mv -f ".deps/bwm-ng.Tpo" ".deps/bwm-ng.Po"; else rm -f ".deps/bwm-ng.Tpo"; exit 1; fi
In file included from global_vars.h:30,
from bwm-ng.c:24:
defines.h:71:20: curses.h: No such file or directory
In file included from bwm-ng.c:24:
global_vars.h:55: error: syntax error before '*' token
global_vars.h:55: warning: type defaults to `int' in declaration of `mywin'
global_vars.h:55: warning: data definition has no type or storage class
bwm-ng.c: In function `deinit':
bwm-ng.c:44: warning: implicit declaration of function `curs_set'
bwm-ng.c:46: warning: implicit declaration of function `endwin'
bwm-ng.c: In function `main':
bwm-ng.c:278: warning: implicit declaration of function `refresh'
bwm-ng.c:279: warning: implicit declaration of function `getch'
make[2]: *** [bwm-ng.o] Error 1
make[2]: Leaving directory `/usr/local/src/bwm-ng-0.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/bwm-ng-0.6'
make: *** [all] Error 2
[root@server bwm-ng-0.6]# make install
Making install in src
make[1]: Entering directory `/usr/local/src/bwm-ng-0.6/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -Wno-long-long -MT bwm-ng.o -M D -MP -MF ".deps/bwm-ng.Tpo" -c -o bwm-ng.o bwm-ng.c; \
then mv -f ".deps/bwm-ng.Tpo" ".deps/bwm-ng.Po"; else rm -f ".deps/bwm-ng.Tpo"; exit 1; fi
In file included from global_vars.h:30,
from bwm-ng.c:24:
defines.h:71:20: curses.h: No such file or directory
In file included from bwm-ng.c:24:
global_vars.h:55: error: syntax error before '*' token
global_vars.h:55: warning: type defaults to `int' in declaration of `mywin'
global_vars.h:55: warning: data definition has no type or storage class
bwm-ng.c: In function `deinit':
bwm-ng.c:44: warning: implicit declaration of function `curs_set'
bwm-ng.c:46: warning: implicit declaration of function `endwin'
bwm-ng.c: In function `main':
bwm-ng.c:278: warning: implicit declaration of function `refresh'
bwm-ng.c:279: warning: implicit declaration of function `getch'
make[1]: *** [bwm-ng.o] Error 1
make[1]: Leaving directory `/usr/local/src/bwm-ng-0.6/src'
make: *** [install-recursive] Error 1

not work that i need to do?
 
[root@server bwm-ng-0.5]# make
make[1]: Entering directory `/usr/local/src/bwm-ng-0.5/src'
gcc -O2 -Wall -c -o bwm-ng.o bwm-ng.c
In file included from bwm-ng.h:24,
from bwm-ng.c:24:
defines.h:68:20: curses.h: No such file or directory
In file included from bwm-ng.c:24:
bwm-ng.h:67: error: syntax error before '*' token
bwm-ng.h:67: warning: type defaults to `int' in declaration of `mywin'
bwm-ng.h:67: warning: data definition has no type or storage class
bwm-ng.h:68: error: syntax error before '*' token
bwm-ng.h:68: warning: type defaults to `int' in declaration of `myscr'
bwm-ng.h:68: warning: data definition has no type or storage class
bwm-ng.c: In function `deinit':
bwm-ng.c:83: warning: implicit declaration of function `curs_set'
bwm-ng.c:85: warning: implicit declaration of function `endwin'
bwm-ng.c: In function `main':
bwm-ng.c:208: warning: implicit declaration of function `refresh'
bwm-ng.c:209: warning: implicit declaration of function `getch'
make[1]: *** [bwm-ng.o] Error 1
make[1]: Leaving directory `/usr/local/src/bwm-ng-0.5/src'
make: *** [bwm-ng] Error 2
[root@server bwm-ng-0.5]# make install
make[1]: Entering directory `/usr/local/src/bwm-ng-0.5/src'
gcc -O2 -Wall -c -o bwm-ng.o bwm-ng.c
In file included from bwm-ng.h:24,
from bwm-ng.c:24:
defines.h:68:20: curses.h: No such file or directory
In file included from bwm-ng.c:24:
bwm-ng.h:67: error: syntax error before '*' token
bwm-ng.h:67: warning: type defaults to `int' in declaration of `mywin'
bwm-ng.h:67: warning: data definition has no type or storage class
bwm-ng.h:68: error: syntax error before '*' token
bwm-ng.h:68: warning: type defaults to `int' in declaration of `myscr'
bwm-ng.h:68: warning: data definition has no type or storage class
bwm-ng.c: In function `deinit':
bwm-ng.c:83: warning: implicit declaration of function `curs_set'
bwm-ng.c:85: warning: implicit declaration of function `endwin'
bwm-ng.c: In function `main':
bwm-ng.c:208: warning: implicit declaration of function `refresh'
bwm-ng.c:209: warning: implicit declaration of function `getch'
make[1]: *** [bwm-ng.o] Error 1
make[1]: Leaving directory `/usr/local/src/bwm-ng-0.5/src'
make: *** [bwm-ng] Error 2
[root@server bwm-ng-0.5]#

not working you have types without install things...
 
adamp,

You might also give iftop a try. This handy tool has been a favorite of mine for quite some time now.

Code:
cd /usr/local/src
wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
tar zxvf iftop-0.17.tar.gz
cd iftop-0.17
./configure
make
make install

from the command line:
iftop

hope this helps,
Ted

You will also need the additional packages libpcap and ncurses... if you are running an rpm based OS you can try:
yum install libpcap ncurses-devel
 
Last edited:
[root@server iftop-0.17]# make
make: *** No targets specified and no makefile found. Stop.
[root@server iftop-0.17]# make install
make: *** No rule to make target `install'. Stop.
sorry but this not work

I also do yum install libpcap ncurses-devel and get this:

[root@server iftop-0.17]# yum install libpcap ncurses-devel
Setting up Install Process
Setting up repositories
update 100% |=========================| 951 B 00:00
base 100% |=========================| 1.1 kB 00:00
addons 100% |=========================| 951 B 00:00
extras 100% |=========================| 1.1 kB 00:00
Reading repository metadata in from local files
primary.xml.gz 100% |=========================| 35 kB 00:00
update : ################################################## 128/128
Added 45 new packages, deleted 11 old in 0.96 seconds
primary.xml.gz 100% |=========================| 36 kB 00:00
extras : ################################################## 147/147
Added 8 new packages, deleted 0 old in 0.36 seconds
Excluding Packages in global exclude list
Finished
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for ncurses-devel to pack into transaction set.
ncurses-devel-5.4-13.i386 100% |=========================| 88 kB 00:01
---> Package ncurses-devel.i386 0:5.4-13 set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
ncurses-devel i386 5.4-13 base 1.4 M

Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 1.4 M
Is this ok [y/N]: y
Downloading Packages:
(1/1): ncurses-devel-5.4- 100% |=========================| 1.4 MB 00:18
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing: ncurses-devel ######################### [1/1]

Installed: ncurses-devel.i386 0:5.4-13
Complete!

what now?
 
adamp,

I'm not sure what distro your running, but I went ahead and assumed CentOS 4.4, if this is the case...

Code:
cd /tmp
wget ftp://ftp.isu.edu.tw/pub/Linux/CentOS/4.4/os/i386/CentOS/RPMS/libpcap-0.8.3-10.RHEL4.i386.rpm
rpm -Uvh libpcap-0.8.3-10.RHEL4.i386.rpm
Then follow up with the previous post.

If you are not sure what distro you are running, the following command will clue you in....
Code:
uname -a

Let me know how it goes.

Ted
 
Back
Top