If anybody is interested in monitoring the on-line time used by diald, I've
written a few sed and awk scripts to process the data.
Basically, I take the output of the accounting log (set in diald.conf:
"accounting-log /var/log/diald.log" in my case), then use the start and end
times for the connection (along with the time connected field). The data
is processed into one line for each day, with each hour separated by tabs
(no usage gives null output for that hour). This data is directly usable
by a spreadsheet program to generate a 3-dimensional chart, showing one day
compared next to the others, with each hour represented by a bar.
I haven't seen too many other simple methods of compiling this information,
so I wrote this using the two programs I know (sed and awk). There's room
for improvement (I don't write code for a living ;-), so if you want to
have the source files to play with, I can either post them as an
attachment, or email the files to you directly.
It's initiated by a shell command, so I have it run each night via the
cron. I intend on parsing the data into week-long logs at some point soon,
but this is a good starting point for anyone else.
Sherrod
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]