Bluehost.com Web Hosting $6.95

Reading Apache scoreboard WITHOUT mod_perl

This is a discussion on Reading Apache scoreboard WITHOUT mod_perl within the Linux Web Servers forums, part of the Web Server and Related Forums category; I'm trying to support a server that runs multiple instances of Apache. We've got maybe a dozen clients ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-24-2005
Dan M
 
Posts: n/a
Default Reading Apache scoreboard WITHOUT mod_perl

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.
  #2 (permalink)  
Old 08-24-2005
Nick Kew
 
Posts: n/a
Default Re: Reading Apache scoreboard WITHOUT mod_perl

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
  #3 (permalink)  
Old 08-24-2005
Dan M
 
Posts: n/a
Default Re: Reading Apache scoreboard WITHOUT mod_perl

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

> 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.


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

Dan
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:53 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0