Hi, I can get darkstat to run fine of my USB pendrive, but I can't seem to get it to run as a daemon using the --detach keyword.
Her is what it prints when i start it:
Code:
[admin@myrouter /tmp]$ ./darkstat -d /tmp/harddisk/darkstats/ -p 81 --detach
darkstat v2.6 using libpcap v2.4 (mipsel-unknown-linux-gnu)
Detaching...
[admin@myrouter /tmp]$ Firing up threads...
Sniffing on device br0, local IP is 192.168.100.1
GRAPH: Starting at 5 secs, 55 mins, 1 hrs, 20 days.
Loaded /tmp/harddisk/darkstats/darkstat.db.
ACCT: Capturing traffic...
Point your browser at http://localhost:81/ to see the stats.
And when running ps i get this:
Code:
139 admin 636 S ./darkstat -d /tmp/harddisk/darkstats/ -p 81 --detach
140 admin 636 S ./darkstat -d /tmp/harddisk/darkstats/ -p 81 --detach
141 admin 636 S ./darkstat -d /tmp/harddisk/darkstats/ -p 81 --detach
Any ideas?
My firmware is 1.9.2.7-3b.
While I'm here I might as well ask a more general question..
I have a small network setup sharing my Internet connection with 4 neighbors. I want to be able to monitor my network a little, and specifically in two ways:
- Some network statistic over the usage of each neighbor. (What and how much)
- Some realtime information of who is on at the moment, and how much resources are they using (Ie. are they browsing, playing online or downloading (p2p))
Any ideas for the best way of accomplishing this? From this forum I have looked a bit into Iptraf and darkstat, and tried unsuccesfully to get the Graphical IP accounting running. But I am still unsure of the best way of achieving what I want, so all suggestions are welcome.. If you have a tool not mentioned above that I should try out, or if you have some suggestions of how I can use iptraf or darkstat..
Sjur
PS: Didn't need any extra libs to run darkstat.. Could just run it right of my usb pendrive..