LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-26-2008, 06:11 AM   #1
Last Attacker
Member
 
Registered: Jun 2004
Location: South Africa
Distribution: Ubuntu
Posts: 120

Rep: Reputation: 15
Question Visual Real-time traffic monitor


Hi again
Does anyone maybe know of a client app for Windows/Linux that polls the Linux (Ubuntu) Gateway and checks (in almost real-time) what the bandwidth usage is? Something like KInternet (which is SuSE only as far as I know) where you can see a graph showing how much kbps is sent and received per second.

Thanks
 
Old 12-28-2008, 11:20 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
gkrellm ?
 
Old 12-28-2008, 12:20 PM   #3
Last Attacker
Member
 
Registered: Jun 2004
Location: South Africa
Distribution: Ubuntu
Posts: 120

Original Poster
Rep: Reputation: 15
Hi there

Thanks for the suggestion.
I see it has a Windows version but can it poll remotely? That's the important part.
 
Old 12-28-2008, 12:36 PM   #4
Last Attacker
Member
 
Registered: Jun 2004
Location: South Africa
Distribution: Ubuntu
Posts: 120

Original Poster
Rep: Reputation: 15
Thanks to your suggestion I found an app that is exactly what I am looking for. Although its not GKrellM it is LineSrv with the Windows & Linux clients that can connect & disconnect the Gateway server and view its current upload & download rate.

http://metz.gehn.net/projects/qlinecontrol/

THANKS!!! I am going to test this now! Thankfully the Ubuntu repo has support for LineSrv.
 
Old 12-28-2008, 12:40 PM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Well, I don't "do" windows, but if you start a vncserver on your linux box, and run gkrellm you'll be able to view the GUI from a windows machine running a (windows) vncviewer.

It all seems to be a lot of trouble to go to just to "see a graph showing how much kbps is sent and received per second."

Off-topic: This is a technical forum, and I am politely informing you that I find your Sig to be inappropriate.

[EDIT:]
We appear to have cross-posted.
Anyway, your problem seems to be solved.
[/EDIT]

Last edited by tredegar; 12-28-2008 at 12:42 PM.
 
Old 12-28-2008, 12:48 PM   #6
Last Attacker
Member
 
Registered: Jun 2004
Location: South Africa
Distribution: Ubuntu
Posts: 120

Original Poster
Rep: Reputation: 15
I don't want to VNC every time I wanna check for connection speed, etc.
Besides its for everyone @ home who uses Windows machines to connect to the internet via a Linux Gateway.

Off topic: Sig's shouldn't be an issue, as long as the questions and answers are relevant.
 
Old 12-28-2008, 01:10 PM   #7
Last Attacker
Member
 
Registered: Jun 2004
Location: South Africa
Distribution: Ubuntu
Posts: 120

Original Poster
Rep: Reputation: 15
Yeah so far I think it is fixed. I hope it is!
 
Old 12-28-2008, 01:45 PM   #8
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by tredegar View Post
Well, I don't "do" windows, but if you start a vncserver on your linux box, and run gkrellm you'll be able to view the GUI from a windows machine running a (windows) vncviewer.
I know it's solved by now. But I had to say that I find this solution you gave highly inefficient. Gkrellm has a daemon architecture, so, let's use it. Just launch gkrellmd in the relevant machine, then poll it from whatever machine using

Code:
gkrellm -s <host>
I don't use windows either. But if gkrellm can run under windows, then it should work as well.

Pointless postscript: 99.9% of the signatures in ALL the forums are pointless in the best case, and completely off topic. I certainly don't share any affinity with this concrete signature, but I don't think this case is different of any other. It's "just another signature". Not that my opinion matters, of course. I personally don't care at all about signatures, and most times just disable them. In technical forums like this one though it's useful sometimes to see them because they contain actually useful shortcuts. In which regards me, I find far more harmful long signatures than those whose contents doesn't match my ideas, even if they contain something that's actually useful. Sometimes more than 50% of a thread is the contents of signatures, and that's something I hate because it makes the navigation very difficult. Overall when you are in text only environments.[/I]

Last edited by i92guboj; 12-28-2008 at 01:54 PM.
 
Old 12-28-2008, 02:03 PM   #9
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Just launch gkrellmd in the relevant machine, then poll it from whatever machine using ... gkrellm -s <host>
Thanks for your useful additional insight & information. I don't use gkrellm and was just trying to point Last Attacker in the right direction. Your solution looks better, but I haven't tried it. I do not need it
 
Old 12-28-2008, 02:15 PM   #10
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Quote:
Originally Posted by tredegar View Post
Thanks for your useful additional insight & information. I don't use gkrellm and was just trying to point Last Attacker in the right direction. Your solution looks better, but I haven't tried it. I do not need it
No problem, all the solutions are valid even if they do not perform the same

Note that I haven't tried this on a mixed win-linux environment, so I don't know if there's any specific issue. It should work, and gkrellm has been polished for years and years now, so there shouldn't be issues. But I can't guarantee it either because I have only used it in pure linux environments.

Cheers.
 
Old 12-29-2008, 07:08 AM   #11
Last Attacker
Member
 
Registered: Jun 2004
Location: South Africa
Distribution: Ubuntu
Posts: 120

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by i92guboj View Post
No problem, all the solutions are valid even if they do not perform the same

Note that I haven't tried this on a mixed win-linux environment, so I don't know if there's any specific issue. It should work, and gkrellm has been polished for years and years now, so there shouldn't be issues. But I can't guarantee it either because I have only used it in pure linux environments.

Cheers.
Hi there i92guboj!

I don't know gkrellm at all so I didn't know that it had a service on the Linux machine that I could use.

You see what I have is a typical home setup where we have 3 PCs who need to use the internet and 1 Linux Gateway. Now, up until now, I used Open SuSE 10.0 which had the SMPPPd thing going where the client machine can connect and disconnect to/from the internet with either KInternet (for SuSE clients) or SMPPP for Windows (I found this crazy app which is in German which helped for Windows PCs) that allowed me to do that. Also they were able to show the current internet traffic, rate of bytes sent and received over the Gateway to the Internet.

I then discovered that the software repo of SuSE 10.0 isn't supported anymore (well thats what I found), the new SuSE versions need more powerful machines than the one I have for the Gateway and my Gateway had a filesystem issue (where I then formatted the thing) and so I thought that moving to Ubuntu 8.04 (with the LTS; but I decided to go with Xubuntu, where I found that Xfce is very nice and fast for VNC sessions) would solve that problem.

So far almost everything is set up the way it was before in SuSE except this part where I needed the Windows/Linux client app for the internet.

I haven't managed to get it to work yet but LineSrv seems to be the thing I am looking for + its got a nice Qt client for Linux and Windows which I think is perfect!
 
Old 12-29-2008, 09:27 AM   #12
Last Attacker
Member
 
Registered: Jun 2004
Location: South Africa
Distribution: Ubuntu
Posts: 120

Original Poster
Rep: Reputation: 15
Thumbs up

Hi again

Just wanted to let everyone know (who're interested) that I got this solution to work just fine!
There was a few things that I saw I had to do before I got it to work.
Firstly the apt-get version of LineSrv won't work out of the box (Ubuntu's) since there was a bug filed and it doesn't seem to have been fixed so I had to use the default linesrv.conf file, modify it, create my own scripts and then it worked.

For reference, here is what I did. I have an iBurst connection which uses the Debain ppp dialer to connect. So the ppp0 is my internet interface.

I copied the /usr/share/doc/linesrv/linesrv.conf to /etc/linesrv/.
Then I created 2 scripts for dialing up and disconnecting:

Dialup script
Code:
#!/bin/sh
ifup ib0 2> /dev/null > /dev/null
Hangup script
Quote:
#!/bin/sh
ifdown ib0 2> /dev/null > /dev/null
I placed them in the /etc/ppp path.
The ib0 is my iburst interface, I have to do it like this otherwise it won't work. Also LineSrv has to be root for this to work. Fortunately the init script that is setup via apt-get does that automatically.
I know the script looks funny but this is the script format that was followed in the sample scripts found in the LineSrv source files.

Then I modified the /etc/linesrv/linesrv.conf file:
  • I set user_accounting to no since I don't want ppl to authenticate when dialing up
  • I set currency to ZAR (Since I am from South Africa ;-) )
  • I uncommented the 'line T-Online' line, you can call it anything you want after the 'line' part
  • I uncommented the script_up, script_dn and interface and pointed them to the appropriate dialup, hangup scripts and the interface points to ppp0
  • I uncommented 'con_type' and set it to 'netdev'
  • I uncommented 'send_throughput' and set it to 'yes' since QLineControl client want this to know at what speed the internet traffic is heading

And then I ran the LineSrv service and there you go. I connected with QLineControl just fine without any hassles.

Cheers and God Bless!

Last edited by Last Attacker; 12-29-2008 at 09:34 AM.
 
  


Reply

Tags
dialup, remote



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
Real Time Monitor for proxy server kepkin Linux - Server 0 08-30-2007 07:57 AM
Monitoring traffic tool/web based(non-cgi?)/non-SNMP/low CPU usage/non-real time pe2338 Linux - Networking 3 05-04-2006 01:00 PM
LXer: Create your own real-time visual effects on Linux LXer Syndicated Linux News 0 01-17-2006 08:46 PM
real time music visual reksav Linux - General 1 09-16-2005 09:37 PM
NIC real time status / traffic monitor? KendersPlace Linux - Networking 3 09-10-2003 01:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:56 PM.

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