LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-03-2010, 03:23 PM   #16
mRgOBLIN
Slackware Contributor
 
Registered: Jun 2002
Location: New Zealand
Distribution: Slackware
Posts: 999

Rep: Reputation: 231Reputation: 231Reputation: 231

If your router supports SNMP you might be able to monitor it using munin or MRTG.
 
Old 01-03-2010, 04:26 PM   #17
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
If your router supports SNMP you might be able to monitor it using munin or MRTG.
Yes, the router supports SNMP. I mentiond that in a previous response. I'm unsure I want all the hassle and overhead of running something as complex as MRTG.

I never heard of munin but will look further.

Graphs are nice but not a priority.

However, although currently I only want to know total throughput, I notice some of these apps can calculate bandwidth speed (Mbps) too. That might cool but these complex apps are over my head at the moment.
 
Old 01-03-2010, 05:38 PM   #18
rojiru
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Rep: Reputation: 0
researched a little about your setup... do you have dd-wrt already installed in the router? if not you might have a look at openwrt (either way). I believe that it can provide a much better solution for you, if changing the firmware on the router is in your interest. At least with openwrt you might be able to install a package to do what you want. You will need a PC to offload the data to though.

Honestly you are kind of limited with your setup. The switch isn't managable, and the router not much to your needs without an upgrade. Let the fun begin! It is a dangerous undertaking!

Openwrt can run in virtual box for testing, before implementation. I believe that you stated that you have VirutalBox running on your desktop. This is most helpful in getting the right solution put together.

I imagine that you have done plenty of digging already. So enjoy!
 
Old 01-03-2010, 08:37 PM   #19
kd5zex
LQ Newbie
 
Registered: Dec 2008
Distribution: Slackware
Posts: 28

Rep: Reputation: 15
Looks like you can write the bandwidth data to a mounted drive.

http://www.polarcloud.com/tomatofaq#...itoring_what_i

Quote:
In Bandwidth Monitoring, what is "Custom Path"?[toc, link]
It's a directory that is accessible/writable from within the router. Examples: "/tmp/", "/cifs1/mystuff/" (if you mounted a drive). Windows "C:\directory\" should not be used. If you want to save the data to your computer's hard drive, use CIFS.
IMHO, tomato firmware is a simple solution to your issue.
 
Old 01-03-2010, 10:26 PM   #20
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Originally I had considered a CIFS solution, but the computer storing the logs must always be powered on. That is not the case here. For example, soon I am going to power down my office machine from which I am writing this response. I then will power up my HTPC. From my HTPC I might stream a video to watch, which needs the router. But the HTPC is not on all the time.

As I mentioned, the data I seek is already available in the router. I think I need only write a shell script to manipulate the data. That is the solution I am now leaning, although I'll let the idea fester in my subconscious for a few days.
 
Old 01-03-2010, 11:00 PM   #21
amiga32
Member
 
Registered: Mar 2009
Location: Illinois
Distribution: slackware bro
Posts: 161

Rep: Reputation: 38
Quote:
I have a Linksys WRT54GL 1.1 router with DD-WRT v23SP2 firmware. Has worked well a long time but there are no usage stats.
Hi Woodsman. I have a Linksys WRT150N with DD-WRT v24 firmware and it records all my daily incoming/outgoing traffic in MB every month under Status -> WAN. It also has real-time bandwidth monitoring too.

Last edited by amiga32; 01-03-2010 at 11:02 PM.
 
Old 01-04-2010, 01:05 AM   #22
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
amiga32: Does the data survive a power cycle? If yes, how much data? A few hours? A day? A week? Month? Year?
 
Old 01-04-2010, 01:44 AM   #23
amiga32
Member
 
Registered: Mar 2009
Location: Illinois
Distribution: slackware bro
Posts: 161

Rep: Reputation: 38
Quote:
Originally Posted by Woodsman View Post
amiga32: Does the data survive a power cycle? If yes, how much data? A few hours? A day? A week? Month? Year?
I just checked and I have bandwidth stats going back to February 09, which is probably around the time when I ditched Linksys firmware for DD-WRT. Since then I have a couple power outages and probably at least 15-20 manual reboots so yes it does survive and should keep your stats at least a year
 
Old 01-04-2010, 08:49 AM   #24
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,845

Rep: Reputation: 452Reputation: 452Reputation: 452Reputation: 452Reputation: 452
I was looking at the GUI config panel for knemo. On the interfaces tab, it will let you select the interface(s) to be monitored. I don't have a home network, so I have no idea, but can't you select the right interface for your needs with this tool? Then delete the ones you don't want?
 
Old 01-04-2010, 01:37 PM   #25
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
I don't have a home network, so I have no idea, but can't you select the right interface for your needs with this tool? Then delete the ones you don't want?
Yes, indeed, but that does not solve the problem of distinguishing LAN traffic and internet traffic. Also, as I mentioned, KNemo is a gui app and I prefer to monitor internet throughput at all times.

Quote:
I just checked and I have bandwidth stats going back to February 09, which is probably around the time when I ditched Linksys firmware for DD-WRT. Since then I have a couple power outages and probably at least 15-20 manual reboots so yes it does survive and should keep your stats at least a year
Thanks for sharing. I could not find that specific information online. I'm sure the information is available somewhere and I simply overlooked.

Question, how did you check that stats were stored back to February? Through the DD-WRT web page interface or SSH into the router? Specifically, does DD-WRT show the entire history on the web page interface?

Do you know the exact date of the version you are using? When I browsed the forums I kept reading about problems and bugs with v24. That is one reason I kept v23SP2 (9/15/06) on my router.
 
Old 01-04-2010, 02:37 PM   #26
amiga32
Member
 
Registered: Mar 2009
Location: Illinois
Distribution: slackware bro
Posts: 161

Rep: Reputation: 38
Quote:
Question, how did you check that stats were stored back to February? Through the DD-WRT web page interface or SSH into the router? Specifically, does DD-WRT show the entire history on the web page interface?
Yeah I used the web interface. You can switch back between months, it logs all the incoming/outgoing traffic per day of that month in bar graph format.

Quote:
Do you know the exact date of the version you are using? When I browsed the forums I kept reading about problems and bugs with v24. That is one reason I kept v23SP2 (9/15/06) on my router.
I'm using the stable v24 release. I can't give you an exact date on it right now. Currently there is stable v24 SP1 that's supposed to be less buggy than v24, though I haven't had any noticeable problems. You could also wait for the stable v24 SP2 which should be coming out pretty soon or the v24 SP2 pre-release as well.
 
Old 01-04-2010, 07:19 PM   #27
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Original Poster
Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Quote:
Yeah I used the web interface. You can switch back between months, it logs all the incoming/outgoing traffic per day of that month in bar graph format.
Thanks much. I'll have to research further.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Monitor Bandwidth Usage with vnStat LXer Syndicated Linux News 0 05-14-2009 05:30 AM
LXer: Datafox: Firefox Extension to monitor bandwidth usage on BSNL DataOne LXer Syndicated Linux News 0 02-12-2007 08:46 PM
Monitor bandwidth usage and attempted usage! Depressed_amphibian Linux - Networking 3 06-15-2006 07:13 AM
Bandwidth usage monitor? Zmyrgel Linux - Networking 5 06-08-2006 03:12 AM
one-liner to see current internet bandwidth usage doorbits Debian 6 11-01-2003 02:10 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration