webOS Nation Forums > Homebrew > webOS homebrew apps > Netstat - network traffic monitor app
1 2 3 4 5 6  ... Last
Member: debilater
at: 07:34 PM 12/11/2009
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: netstat105main.png (45.4 KB) netstat105pref.png (30.4 KB) netstat106history.png (24.3 KB) 
Reply
Member: palmdoc2005
at: 01:49 AM 12/12/2009
Nice work, thanks. Testing it out now.
Reply
Member: palmdoc2005
at: 02:58 AM 12/12/2009
I notice that after a reset for battery change, the data resets to zero?
Reply
Member: rondera
at: 04:59 AM 12/12/2009
OMG Thanks SO much!!
Reply
Member: palmdoc2005
at: 06:55 AM 12/12/2009
Since a reset to replace a battery its been showing zero for all 3 options
Reply
Member: rondera
at: 08:31 AM 12/12/2009
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
Reply
Member: debilater
at: 12:09 PM 12/12/2009
Originally Posted by palmdoc2005:
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...

Originally Posted by rondera:
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)
Reply
Member: DNic
at: 01:18 PM 12/12/2009
Nice app!
Suggestions:
- Log with previous months totals
- Reset button
- Refresh button

My stats are all at 0 as well after reboot.
Reply
Member: debilater
at: 01:49 PM 12/12/2009
Originally Posted by DNic:
- Log with previous months totals
It's in the queue, the data required for this are already there...

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

Originally Posted by DNic:
- 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).

Originally Posted by DNic:
My stats are all at 0 as well after reboot.
I'm digging into it currently
Reply
Member: debilater
at: 07:34 PM 12/12/2009
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.
Reply
Member: stryc9
at: 08:27 PM 12/12/2009
Thanks, I was looking for something like this.
Reply
Member: palmisoletano
at: 01:05 PM 12/13/2009
Where is it? In preware, in webos-internals feed, I can see only obsoletes feed.
Reply
Member: debilater
at: 01:24 PM 12/13/2009
Originally Posted by palmisoletano:
Where is it? In preware, in webos-internals feed, I can see only obsoletes feed.
Preware => Application => System Utilities => Netstat
Reply
Member: palmisoletano
at: 01:56 PM 12/13/2009
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.
Reply
Member: debilater
at: 03:26 PM 12/13/2009
Originally Posted by palmisoletano:
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)

Originally Posted by palmisoletano:
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.
Reply
Member: palmdoc2005
at: 03:30 PM 12/13/2009
I see both the Daemon and Netstat 1.0.5 in Preware.
Reply
Member: palmisoletano
at: 05:59 PM 12/13/2009
Thank you, debilater.

I finally installed it manually, using webos quick install.
Reply
Homebrew Developer: HaPe
at: 05:31 AM 12/14/2009
Thanks too from me. That was one thing I missed to check my O2 contact.

HaPe
Reply
Member: Morbo
at: 07:37 AM 12/14/2009
This is really great, thanks a lot!
Reply
Member: lordbah
at: 11:24 AM 12/14/2009
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.
Reply
1 2 3 4 5 6  ... Last
webOS Nation Forums > Homebrew > webOS homebrew apps > Netstat - network traffic monitor app