Hi,
First of all thank you very much for making Jiffy open source. We're
now using it on the
http://www.local.ch/ platform since Monday.
As part of that implementation I decided to not use any database and
instead directly plot the relevant values using MRTG. For that I
implemented a script which takes the log lines on standard input and
every five minutes writes out the current numbers to the file system.
The script is configured in Apache as the log file (using Apache piped
logs -
http://httpd.apache.org/docs/2.2/logs.html#piped)
The script is at <
http://paste.pocoo.org/show/78432/>. The whole
parseLogEntry() function has been ported from the Perl script you
provide.
MRTG then uses a script to read the data from that file and plots the
values. The result then looks like this:
http://www.flickr.com/photos/patrice/2632812489/
I hope this script is useful to somebody else as well.
Cheers
Patrice