webOS Nation Forums >  Homebrew >  webOS homebrew apps > Netstat - network traffic monitor app
Netstat - network traffic monitor app

  Reply
Like Tree1Likes

 
LinkBack Thread Tools Display Modes
Old 12/11/2009, 06:34 PM   #1 (permalink)
Member
 
debilater's Avatar
 
Join Date: Nov 2009
Location: Germany
Posts: 145
Likes Received: 0
Thanks: 9
Thanked 59 Times in 23 Posts
Default Netstat - network traffic monitor app

This is an app aimed at pre users with a limited data plan (as for example O² users in germany with the "Internet-M" plan). It helps to keep track how far you are at the traffic limit. Netstat shows traffic summary per interface for the current month.

The app consists of two parts, a linux daemon running in the background which collects the data and storing it in a database, and the app displaying it.

A future version will display historical statistics graphs.

The app and daemon can be installed from Preware, it is in the webos-internals feed.





Changelog:
1.0.7:
- added palm pixi support
- fixed prerm script bug
- fixed installation on webOS 1.3.5 (thx to rwhitby)
- added support for traffix limit alert (wan interface only)

1.0.6:
- added history of aggregated data (tap on the interface to view it)
- bugfix in daemon, it didn't correctly aggregate data

1.0.5:
- added preferences screen from where you can set the start day of the accounting cycle, counters will be reset on this day then.
- added reset counters button to the preferences screen
- added reload button to the main screen
- fixed reset counters bug on reboot (now keeping track of resets)

1.0.4:
- fixed reload cycle and added delay for error state if daemon seems not to run

1.0.3:
- removed reload button, it reloads itself now

1.0.2:
- fixed error message if daemon is not running
- fixed about message, now it mentions the daemon, not the service

1.0.1
- removed lib directory (unused at the moment)
- fixed error message if daemon is not running to renamed daemon
- fixed copyright msg

1.0.0:
- initial commit version

Licensed under the BSD license
Attached Images
File Type: png netstat105main.png (45.4 KB, 1699 views) Email Attachment
File Type: png netstat105pref.png (30.4 KB, 74 views) Email Attachment
File Type: png netstat106history.png (24.3 KB, 63 views) Email Attachment

Last edited by debilater; 01/03/2010 at 08:07 AM.
debilater is offline   Reply With Quote
Old 12/12/2009, 12:49 AM   #2 (permalink)
Member

 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
Default

Nice work, thanks. Testing it out now.
palmdoc2005 is offline   Reply With Quote
Old 12/12/2009, 01:58 AM   #3 (permalink)
Member

 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
Default

I notice that after a reset for battery change, the data resets to zero?
palmdoc2005 is offline   Reply With Quote
Old 12/12/2009, 03:59 AM   #4 (permalink)
Member
 
Join Date: Oct 2009
Location: Germany
Posts: 61
Likes Received: 1
Thanks: 62
Thanked 1 Time in 1 Post
Default

OMG Thanks SO much!!

Last edited by rondera; 12/12/2009 at 06:13 AM.
rondera is offline   Reply With Quote
Liked by EvanKr likes this.
Old 12/12/2009, 05:55 AM   #5 (permalink)
Member

 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
Default

Since a reset to replace a battery its been showing zero for all 3 options
palmdoc2005 is offline   Reply With Quote
Old 12/12/2009, 07:31 AM   #6 (permalink)
Member
 
Join Date: Oct 2009
Location: Germany
Posts: 61
Likes Received: 1
Thanks: 62
Thanked 1 Time in 1 Post
Default

Maybe you can add an Reset Button? Or an Option that he reset the stats at a datum? So i can adjust it to my 0² contract
rondera is offline   Reply With Quote
Old 12/12/2009, 11:09 AM   #7 (permalink)
Member
 
debilater's Avatar
 
Join Date: Nov 2009
Location: Germany
Posts: 145
Likes Received: 0
Thanks: 9
Thanked 59 Times in 23 Posts
Default

Quote:
Originally Posted by palmdoc2005 View Post
Since a reset to replace a battery its been showing zero for all 3 options
Hm sounds bad. Perhaps the daemon lost the db location or something (webOS changes it sometimes). If have linux access, would you mind sending me the contents of the directory /media/internal/.app-storage/file_.var.usr.palm.applications.org.daemon.de.netstat_0/ (there are just numbers, no personal data of any kind)?

During my tests it survived several reboots...

Quote:
Originally Posted by rondera View Post
Maybe you can add an Reset Button? Or an Option that he reset the stats at a datum? So i can adjust it to my 0² contract
1.0.5. will have a preferences screen where you can set the start day of the accounting cycle, it will then reset counters on that day instead of the default one (every 1st)
debilater is offline   Reply With Quote
Old 12/12/2009, 12:18 PM   #8 (permalink)
Member
 
DNic's Avatar
 
Join Date: Jun 2009
Posts: 599
Likes Received: 0
Thanks: 174
Thanked 44 Times in 34 Posts
Default

Nice app!
Suggestions:
- Log with previous months totals
- Reset button
- Refresh button

My stats are all at 0 as well after reboot.
DNic is offline   Reply With Quote
Old 12/12/2009, 12:49 PM   #9 (permalink)
Member
 
debilater's Avatar
 
Join Date: Nov 2009
Location: Germany
Posts: 145
Likes Received: 0
Thanks: 9
Thanked 59 Times in 23 Posts
Default

Quote:
Originally Posted by DNic View Post
- Log with previous months totals
It's in the queue, the data required for this are already there...

Quote:
Originally Posted by DNic View Post
- Reset button
Good point, will add this.

Quote:
Originally Posted by DNic View Post
- Refresh button
Well, it reloads itself every 5 minutes, I could add such a button, but it won't reveal anything new once the daemon didn't update (it runs every 5 minutes too).

Quote:
Originally Posted by DNic View Post
My stats are all at 0 as well after reboot.
I'm digging into it currently
debilater is offline   Reply With Quote
Old 12/12/2009, 06:34 PM   #10 (permalink)
Member
 
debilater's Avatar
 
Join Date: Nov 2009
Location: Germany
Posts: 145
Likes Received: 0
Thanks: 9
Thanked 59 Times in 23 Posts
Default

ok 1.0.5 is done, reset counter button is there, reload button as well, you can now select the day when to reset counters automatically, the reboot bug has been fixed.
debilater is offline   Reply With Quote
Thanked by DNic, palmdoc2005, stryc9
Old 12/12/2009, 07:27 PM   #11 (permalink)
Member
 
Join Date: Oct 2009
Posts: 19
Likes Received: 0
Thanks: 4
Thanked 1 Time in 1 Post
Default

Thanks, I was looking for something like this.
stryc9 is offline   Reply With Quote
Old 12/13/2009, 12:05 PM   #12 (permalink)
Member
 
Join Date: Nov 2009
Posts: 4
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Exclamation I can't see it in Preware

Where is it? In preware, in webos-internals feed, I can see only obsoletes feed.
palmisoletano is offline   Reply With Quote
Old 12/13/2009, 12:24 PM   #13 (permalink)
Member
 
debilater's Avatar
 
Join Date: Nov 2009
Location: Germany
Posts: 145
Likes Received: 0
Thanks: 9
Thanked 59 Times in 23 Posts
Default

Quote:
Originally Posted by palmisoletano View Post
Where is it? In preware, in webos-internals feed, I can see only obsoletes feed.
Preware => Application => System Utilities => Netstat
debilater is offline   Reply With Quote
Old 12/13/2009, 12:56 PM   #14 (permalink)
Member
 
Join Date: Nov 2009
Posts: 4
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default

In Preware I only have 286 Available Applications and only 35 in System Utilities. And Netstat doesn't appear in the list of 35 system Utilities.

Also, Netstat doesn't appear in the list of Precentral Homebrew Apps.

Last edited by palmisoletano; 12/13/2009 at 01:02 PM.
palmisoletano is offline   Reply With Quote
Old 12/13/2009, 02:26 PM   #15 (permalink)
Member
 
debilater's Avatar
 
Join Date: Nov 2009
Location: Germany
Posts: 145
Likes Received: 0
Thanks: 9
Thanked 59 Times in 23 Posts
Default

Quote:
Originally Posted by palmisoletano View Post
In Preware I only have 286 Available Applications and only 35 in System Utilities. And Netstat doesn't appear in the list of 35 system Utilities.
Well, it's in the feed, as you can see here: http://ipkg.preware.org/feeds/webos-...s/all/Packages and some people already installed it trough Preware. You may ask the Preware maintainers why this happens. Maybe you have it already installed? In this case it would not appear either.

However you could install it manually using WebOS Quick Install, the packages to install are:
- org.daemon.de.netstatd_1.0.5_all.ipk
- org.daemon.de.netstat_1.0.5_all.ipk

(in this order)

Quote:
Originally Posted by palmisoletano View Post
Also, Netstat doesn't appear in the list of Precentral Homebrew Apps.
The Precentral catalog is independent from the webos-internals package feed. I filed an entry but it's still in their queue.
debilater is offline   Reply With Quote
Thanked By: palmisoletano
Old 12/13/2009, 02:30 PM   #16 (permalink)
Member

 
palmdoc2005's Avatar
 
Join Date: Sep 2005
Location: http://palmdoc.net
Posts: 1,813
Likes Received: 20
Thanks: 295
Thanked 230 Times in 138 Posts
Default

I see both the Daemon and Netstat 1.0.5 in Preware.
__________________
Check out my My Medical webOS Apps
Featured free apps: DrugView | Eponyms | eMed | Dosecalcfree | Beeb News
palmdoc2005 is offline   Reply With Quote
Old 12/13/2009, 04:59 PM   #17 (permalink)
Member
 
Join Date: Nov 2009
Posts: 4
Likes Received: 0
Thanks: 1
Thanked 0 Times in 0 Posts
Default

Thank you, debilater.

I finally installed it manually, using webos quick install.
palmisoletano is offline   Reply With Quote
Old 12/14/2009, 04:31 AM   #18 (permalink)
Homebrew Developer

 
HaPe's Avatar
 
Join Date: Jun 2009
Location: Gremany, Frankfurt am Main
Posts: 520
Likes Received: 11
Thanks: 130
Thanked 182 Times in 77 Posts
Default

Thanks too from me. That was one thing I missed to check my O2 contact.

HaPe
HaPe is offline   Reply With Quote
Old 12/14/2009, 06:37 AM   #19 (permalink)
Member
 
Join Date: Oct 2009
Location: Germany
Posts: 8
Likes Received: 0
Thanks: 3
Thanked 0 Times in 0 Posts
Default

This is really great, thanks a lot!
Morbo is offline   Reply With Quote
Old 12/14/2009, 10:24 AM   #20 (permalink)
Member
 
Join Date: Aug 2005
Location: Rochester, NY, USA
Posts: 343
Likes Received: 8
Thanks: 16
Thanked 15 Times in 12 Posts
Default

When I launched it right after install my Pre hung. Had to remove the battery. Since then it has been fine.

I was dreaming about doing a real-time bandwidth monitor, like you see from Tomato on a router, but I never made a start. You could look into that. And notifications when certain thresholds are reached.
lordbah is offline   Reply With Quote
Reply

 

Thread Tools
Display Modes



 


Content Relevant URLs by vBSEO 3.6.0