Hello,
Here's a patch against PHP_4 that provides a new function called
apache_get_scoreboard(). The function returns an array containing
current scoreboard.
The idea behind this is to provide a flexible way to dump Apache
scoreboard. There are several applications that I can think of : a tool
such as Apache::VMonitor (ie mod_status page on steroïds), dumping the
scoreboard in XML format for a monitoring application (that would also
generate graphs representing Apache activity), or text format for a
command-line tool, etc.
There's a drawback though, which somewhat breaks the "rule" (if any)
"write once run everywhere" because Apache scoreboard structure depends
on the platform and on the version of Apache. I chose however for
simplicity to do a strict mapping of the structure.
I've attached a supersimple test script.
This is my first PHP hack so comments are welcome,
Thank you,
Olivier