> I wrote:
> 
> | I'd like to be able to see at a glance what sort of traffic my LEAF
> | router's been moving over the past hours/days/weeks/whatever.  Is
> | there any way to do that now given packages available (for the uClibc
> | version, ideally.)

Ok, I've done some more work on the script I served earlier, packaged
it as showtraf.lrp, and made it available via this URL:
www.peak.org/~fixin/showtraf.lrp

Install it in the usual way, reboot, and point your browser at

http://192.168.1.254/showtraf.cgi

(Substituting address or name as appropriate.  And assuming you have
one of the standard http servers installed.)

There won't be much to see for 10 minutes.  But over time, as traffic
statistics accumulate, you can see a graphical representation of traffic
on eth0 and eth1 down to five minute slices.  The five minute part, as
well as the set of interfaces tracked, is configurable via lrcfg.

Traffic statistics are accumulated in /tmp, and there's no provision
for backing them up, so they're lost when you reboot.

What's next?  Well, this effectively scratches my itch, so I'm happy
using it as is.  I'm also happy -- happier, even -- if it can be
useful to others.  I don't know if it belongs integrated into webconf
-- though that's where I'd like to see it -- but I would like to at
least make it available via a URL in webconf's left column.  Maybe it
should insert a link to itself into webconf via its /etc/init.d
script?

Suggestions, comments, etc. welcome!

Thanks, as always, for LEAF.

--Eric

PS Caveats: 1) I've replaced my old floppy-based LEAF x86 boxes with
Soekris and WRAP boards which are considerably more powerful than
LEAF's target platform.  My script should run fine on a low-memory
system, but hasn't been tested.  2) I write C/C++ for a living.  This
is the most complex shell script I can remember writing.  My
unfamiliarity with the language probably shows.  My ego can handle
suggestions if anybody has time to make 'em.
-- 
******************************************************************************
* From the desktop of: Eric House, [EMAIL PROTECTED]                            
*
*        Crosswords 4.1.3 for PalmOS now ARM-native: xwords.sourceforge.net  *
******************************************************************************


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
------------------------------------------------------------------------
leaf-user mailing list: leaf-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Reply via email to