Web Servers on Unix and Linux - Reading Apache scoreboard WITHOUT mod_perl

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > August 2005 > Reading Apache scoreboard WITHOUT mod_perl





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Reading Apache scoreboard WITHOUT mod_perl
Dan M

2005-08-23, 8:55 pm

I'm trying to support a server that runs multiple instances of Apache.
We've got maybe a dozen clients on the machine, each running his own
instance (I know it's not a good idea, and I do intend to get away from
running that way, but doing so will take a little while).

I want to keep track of how many clients each instance has running. I know
I can get tht instance using mod_status or Apache::Scoreboard+mod_perl.
But I'd really like to be able to get this info directly, without having
to make an http request, and installing mod_perl just for this purpose
would be a major pain.

Can anyone tell me whether it would be reasonable to read Apache's
scoreboard file to get this info? I've just started digging into the
Apache source code (2.0.54) to figure out how the scoreboard file is
written, but it's going to take me some time to figure this all out.
Nick Kew

2005-08-24, 7:50 am

Dan M wrote:

> Can anyone tell me whether it would be reasonable to read Apache's
> scoreboard file to get this info? I've just started digging into the
> Apache source code (2.0.54) to figure out how the scoreboard file is
> written, but it's going to take me some time to figure this all out.


In 2.0 you'd need an HTTP request (as in mod_status).

In 2.1/2.2, you could use ap_hook_monitor to monitor it.

--
Nick Kew
Dan M

2005-08-24, 6:03 pm

On Wed, 24 Aug 2005 12:08:36 +0100, Nick Kew wrote:

> Dan M wrote:
>
>
> In 2.0 you'd need an HTTP request (as in mod_status).
>
> In 2.1/2.2, you could use ap_hook_monitor to monitor it.


Thanks. I guess it's time to look at the docs on LWP again.

Dan
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com