PDA

View Full Version : darkstat



britnet
09-02-2005, 13:48
Hello,

i want to run darkstat on my router (wl-500b). :cool:

What have i to do? :confused:
I'm really newbi.

Samba is already running. :D

Do i need the crond? :confused:

thx to all

Antiloop
09-02-2005, 13:52
have you searched for darkstat already?

if yes, reply in those specific topics please

britnet
09-02-2005, 14:26
I saw this manual in the forum:


From command prompt type
telnet x.x.x.x (where x.x.x.x is the ip address of the wl500g). Use the same username and password you use to log to the web interface.

When you are in the wl500g
cd /tmp/harddisk , where you should find your files.
mkdir /tmp/xmas
cp ltraf.gz /tmp/xmas
cd /tmp/xmas
gunzip ltraf.gz
chmod 777 ltraf
./ltraf -I eth1 -Dk

But I do need the manual for darkstat not for lTraf.
What have i to do?

britnet
10-02-2005, 13:38
Hello?

Is there no one who has any experience wirth darkstat?

barsju
11-02-2005, 11:03
It should be farily simple..
Copy and unpack the binaries to your usb-device.
Telnet/ssh to the router, cd to the folder containing the binaries.
Then type:

./darkstat
go to http://my.router:666 (or exchange "my.router" with your routers ip or hostname you have given it) and wait for stats.

For more options type:

./darkstat --help

If you get into problems or don't understand my directions, post back and I'll ellaborate.

Sjur

PS: I have only tried on wl500g (not b..)

britnet
18-02-2005, 09:21
Hello all together,

I did it!

DARKSTAT is running now! :cool: :eek: :cool:

Without any experience on unix/linux I get it running.
I'm a lillte bit proud. :rolleyes:

It's quite a cool tool!

I will make a How-To to alle the users here.

hugo
18-02-2005, 10:01
so? why didn't you answer in my reply to your problem? a ./darkstat -i ppp0 is running for hours without any hickup.

britnet
18-02-2005, 11:34
./darkstat -i ppp0

that didn't helped.

The problem was, darkstat has no write permissions to the Stick, so it couldn't create the darkstat.db.

The first time darkstat creates the darkstat.db is after 5 minuten running.
So darkstat crashes after exactly 5 minuten.

samoht
05-06-2005, 15:46
I run darkstat on usb stick and unmounted /mnt/dev, /mnt/proc and umount /mnt for saving memory as described in Oleg´s howto. After 5 Minutes darkstat crashes.

If I do not unmount it, it works perfectly.

It seems that data is temporary saved on /mnt/??? and should be moved to darkstat.db. Does someone know, which file or directory has to be available that it works?

Thomas

britnet
05-06-2005, 21:04
I Used this in my case:

Post-boot:

#run darkstat
/opt/etc/darkstat -d /opt/etc/ >> /opt/etc/ausgabe > /opt/etc/fehler

samoht
05-06-2005, 22:31
If you run darkstat without option "d", the database is created in this directory where you called up the darkstat binary. Problem was, that I thought it where created where the darkstat binary is located...

Thomas