H Lionel,

> I am using lrpStat to graph CPU and bandwidth on my Access Point. I find
> the java thing very helpfull, but I would like to graph more stuff:
> bandwidth used by different trafic shaping classes (using tc -s -d) or
> wireless activity. Is lrpStat available as script instead of a binary ?
> That would make it easier to add features to be graphed.
see http://lrp.hejl.de/install.html, the section called "Example for a
data-generating script on the server-side", which provides a simple
script to do the data gathering.

If you want to use all features lrpstat provides, your script should
generate output in the following format:

Line 1: ProtocolVersion timestamp cpuSystem cpuUser cpuNice cpuIdle uptime
Line 2: ISDNDeviceName1:ONLINE|OFFLINE ISDNDeviceName2:ONLINE|OFFLINE ...
Line 3..n: deviceName:InBytes InPackets InErrors InDrop InFifo InFrame
InCompressed InMulticast OutBytes OutPackets OutErrors OutDrop OutFifo
OutCollisions OutCarrier OutCompressed

ProtocolVerison is 1.40

Timestamp is a value in miliseconds. The absolute value is not important
(the natural thing would be to use miliseconds since 00:00:00 1970-01-01
UTC, but this is only used to properly normalize the values into
"information / second", so it's only the difference between two
timestamps that matters)

If you don't have an ISDN device, line 2 should be an empty line.

The info that is parsed for lines 3+ is "InBytes" and "OutBytes",
everything else is ignored.

I hope that helps,
Martin


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
------------------------------------------------------------------------
leaf-user mailing list: [email protected]
https://lists.sourceforge.net/lists/listinfo/leaf-user
Support Request -- http://leaf-project.org/

Reply via email to