openSUSE Forums > Applications » Traffic monitor for networkmanager

Go Back   openSUSE Forums > Applications
Forums FAQ Members List Search Today's Posts Mark Forums Read

Applications Questions about desktops (KDE, Gnome, XFCE, etc.), software applications (configuration, usage, bugs, documentation)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 18-Jun-2009, 07:31
roberto60's Avatar
Explorer Penguin
 
Join Date: Jul 2008
Posts: 111
roberto60 hasn't been rated much yet
Question Traffic monitor for networkmanager

Hi
I installed on Opensuse 11.0 with networkmanager the UMTS modem Huawei E220 and it works out of the box. In networkmanager I have no way to monitor the traffic amount (I pay on a data exchange basis)

Any advice on software to monitor the traffic via networkmanager on ppp0 link?
__________________
Saluti
R
Reply With Quote
  #2 (permalink)  
Old 18-Jun-2009, 08:11
caf4926's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: The English Lake District. UK - GMT/BST
Posts: 12,046
caf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputation
Send a message via MSN to caf4926
Default Re: Traffic monitor for networkmanager

Maybe knemo will do
__________________
Box: Fedora 11 | (KDE4.3.2) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM
Lap: openSUSE 11.2 RC2 | Celeron 550 | (KDE4.3.3)"1" | Intel 965 GM | Lenovo R61e | 3GB RAM
Reply With Quote
  #3 (permalink)  
Old 18-Jun-2009, 08:48
FeatherMonkey's Avatar
Wise Penguin
 
Join Date: Mar 2008
Posts: 1,536
FeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura about
Default Re: Traffic monitor for networkmanager

If that doesn't work then you can put a script in /etc/NetworkManager/dispatcher.d/
Code:
#!/bin/sh

case "$2" in
    up)
      /usr/bin/vnstat -u -i eth0
      ;;
    down)
      /usr/bin/vnstat -u -i eth0
      ;;
    *)
      exit 0
      ;;
esac
You'll have to install vnstat same warnings it is on OBS so consider disabling the repo after install or removing completely.

On first run after install you have to vnstat-create-db interface my example using eth0 you can also use a nick alias man vnstat. With that in the dispatcher.d folder you have to make sure it is executable, now it'll run on up and down updating the database. If you suspend to disk then I suspect sync maybe better, well either way I also suspect rather than just updating you want enable and disable..

My example is just that an example..

Running vnstat as user will give you the stats as user, so from here you could present it better. Kdialog maybe for example..

http://packages.opensuse-community.o...rchTerm=vnstat
__________________
Man first, have a try at Info, have a look at Wiki, if all that fails Scroogle!!!!!
If I've helped click on the Rep button I don't know what it does but it sounds cool.
Reply With Quote
  #4 (permalink)  
Old 19-Jun-2009, 04:06
roberto60's Avatar
Explorer Penguin
 
Join Date: Jul 2008
Posts: 111
roberto60 hasn't been rated much yet
Default Re: Traffic monitor for networkmanager

I'm using gnome so there is no link to run KDE monitor and so I don't know how to run knemo (I downloaded ti with all the necessay KDE stuff)
__________________
Saluti
R
Reply With Quote
  #5 (permalink)  
Old 19-Jun-2009, 04:54
caf4926's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: The English Lake District. UK - GMT/BST
Posts: 12,046
caf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputationcaf4926 has a brilliant future with this reputation
Send a message via MSN to caf4926
Default Re: Traffic monitor for networkmanager

knemo has to be enabled somewhere in the network settings. I used it in the past with kde3 but not now.
I don't know if it will work in gnome, but I can't see why not.
__________________
Box: Fedora 11 | (KDE4.3.2) | M2N4-SLI | AMD 64 X2 5200+ | nVidia 8500GT | 4GB RAM
Lap: openSUSE 11.2 RC2 | Celeron 550 | (KDE4.3.3)"1" | Intel 965 GM | Lenovo R61e | 3GB RAM
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.0 RC2