Welcome, Guest. Please login or register.
April 18, 2014, 15:34:50 PM
Home Help Search Calendar Login Register
Show unread posts since last visit.
News: Let Pardus-Anka become #1: Pardus-Anka Bug ReportPardus-Anka World Google+ | The Pardus wiki  | Visit Pardus-Anka official website  | Register as forum member?  Email the moderator!

+  Pardus Worldforum
|-+  General
| |-+  Wish list
| | |-+  [added] vnstat
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Go Down Print
Author Topic: [added] vnstat  (Read 960 times)
Jagdeesh
Newbie
*
Gender: Male
Posts: 28



View Profile
« on: August 26, 2011, 08:08:38 AM »

Name of program:- vnstat

Homepage:- http://humdi.net/vnstat/

Description:-vnStat is a console-based network traffic monitor for Linux and BSD that keeps a log of network traffic for the selected interface(s). It uses the network interface statistics provided by the kernel as information source. This means that vnStat won't actually be sniffing any traffic and also ensures light use of system resources. However, in Linux at least a 2.2 series kernel is required.
This program is open source / GPL'ed and can be installed either as root or as a single user. Better instructions are included in the README.

Necessity:- Very useful for those on strict data transfer limit.
Knemo looses data of that session if KDE hangs and works in user space ( database at ~),but    /var/lib/vnstat/  is vnstat's
default database directory. Files are named according to the monitored interfaces and  db is written to hard disk every after fixed interval of time.

(Actually this is the first application I install after a fresh install of an OS.)

-Jagdeesh

« Last Edit: August 29, 2011, 13:02:04 PM by Jagdeesh » Logged
a.palius
Pardus fellow craft
**
Posts: 132


View Profile
« Reply #1 on: August 26, 2011, 15:39:28 PM »

Soon in the pardususer.de repository.

My binary packages can be downloaded from
http://www.4shared.com/folder/z-6cOFM4/vnstat.html
Logged
atolboo
Pardus Guru
****
Posts: 2317



View Profile
« Reply #2 on: August 27, 2011, 14:08:08 PM »

Now available from 2. Additional (non-official) package source: pardususer.de
My results after a restart of the test system:
Quote
atolboo@pardus2011 ~ $ service vnstat status
Service |  Status | Autostart | Description
-------------------------------------------
vnstat  | running |    yes    | vnstat daemon
atolboo@pardus2011 ~ $ wget http://pakete.pardususer.de/pardus-2011/i686/aptana-studio-3-3.0.1-3-p11-i686.pisi
--2011-08-27 11:46:51--  http://pakete.pardususer.de/pardus-2011/i686/aptana-studio-3-3.0.1-3-p11-i686.pisi
Resolving pakete.pardususer.de (pakete.pardususer.de)... 78.138.89.162
Connecting to pakete.pardususer.de (pakete.pardususer.de)|78.138.89.162|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 107715004 (103M) [text/plain]
Saving to: “aptana-studio-3-3.0.1-3-p11-i686.pisi”

100%[========================================================================>] 107,715,004 1.78M/s   in 58s                s                       

2011-08-27 11:47:49 (1.76 MB/s) - “aptana-studio-3-3.0.1-3-p11-i686.pisi” saved [107715004/107715004]

atolboo@pardus2011 ~ $ vnstat
Database updated: Sat Aug 27 11:32:51 2011

   eth0 since 08/27/2011

          rx:  0 KiB      tx:  9 KiB      total:  9 KiB

   monthly
                           rx      |     tx           |    total         |   avg. rate
     ------------------------+-------------+-------------+---------------
       Aug '11         0 KiB |       9 KiB |       9 KiB |    0.00 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated         --     |      --         |      --            |

   daily
                           rx      |     tx           |    total         |   avg. rate
     ------------------------+-------------+-------------+---------------
         today         0 KiB |       9 KiB |       9 KiB |    0.00 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated         --     |      --         |      --            |
As you can see it's not counting rx in my test but after some minutes the result is:
Quote
atolboo@pardus2011 ~ $ vnstat
Database updated: Sat Aug 27 12:03:50 2011

   eth0 since 08/27/2011

          rx:  111.05 MiB      tx:  2.97 MiB      total:  114.02 MiB

   monthly
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
       Aug '11    111.05 MiB |    2.97 MiB |  114.02 MiB |    0.41 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated       129 MiB |       2 MiB |     131 MiB |

   daily
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
         today    111.05 MiB |    2.97 MiB |  114.02 MiB |   21.51 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated       221 MiB |       3 MiB |     224 MiB |
Logged
Jagdeesh
Newbie
*
Gender: Male
Posts: 28



View Profile
« Reply #3 on: August 27, 2011, 18:29:09 PM »

Soon in the pardususer.de repository.

My binary packages can be downloaded from
http://www.4shared.com/folder/z-6cOFM4/vnstat.html

Sorry for the delay,but just now I had the required results.

Installed from the binary i686 package and by running as 'su' created database, but repeatedly was getting " eth0: Not enough data available yet."
At last in system settings>service manager tick marked 'run at start' for vnstat and restarted PC.
Now have
Quote
j@pardus2011 ~ $ vnstat
 eth0: Not enough data available yet.
j@pardus2011 ~ $ vnstat
Database updated: Sat Aug 27 21:33:03 2011

   eth0 since 08/27/2011

          rx:  262 KiB      tx:  146 KiB      total:  408 KiB

   monthly
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
       Aug '11       262 KiB |     146 KiB |     408 KiB |    0.00 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated        --     |      --     |      --     |

   daily
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
         today       262 KiB |     146 KiB |     408 KiB |    0.04 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated        --     |      --     |      --     |

Thanks a lot!

-Jagdeesh.


Logged
Pages: [1] Go Up Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!