LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Visual Real-time traffic monitor (https://www.linuxquestions.org/questions/linux-software-2/visual-real-time-traffic-monitor-693051/)

Last Attacker 12-26-2008 06:11 AM

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

tredegar 12-28-2008 11:20 AM

gkrellm ?

Last Attacker 12-28-2008 12:20 PM

Hi there

Thanks for the suggestion.
I see it has a Windows version but can it poll remotely? That's the important part.

Last Attacker 12-28-2008 12:36 PM

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.

tredegar 12-28-2008 12:40 PM

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 Attacker 12-28-2008 12:48 PM

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.

Last Attacker 12-28-2008 01:10 PM

Yeah so far I think it is fixed. I hope it is! :D

i92guboj 12-28-2008 01:45 PM

Quote:

Originally Posted by tredegar (Post 3389580)
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]

tredegar 12-28-2008 02:03 PM

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 ;)

i92guboj 12-28-2008 02:15 PM

Quote:

Originally Posted by tredegar (Post 3389645)
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.

Last Attacker 12-29-2008 07:08 AM

Quote:

Originally Posted by i92guboj (Post 3389654)
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!

Last Attacker 12-29-2008 09:27 AM

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!


All times are GMT -5. The time now is 10:30 AM.