Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

How to get # of HTTP conenctions through C/C++ program

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


nikse1 at yahoo

Dec 19, 2001, 2:39 PM

Post #1 of 3 (312 views)
Permalink
How to get # of HTTP conenctions through C/C++ program

hi,

It would be very nice if nyone can provide me
some links or info about Apache HTTP server
providing some exposed APIs, such that i can
write a program in C/C++ and call this
APIs and get the performance related
information directly from Apache HTTP webserver ???
This performance related data couldbe like current
count of HTTP connections establised with Apache
webserver.

Just to give an example, Microsoft IIS webserver
provides the performance counters, which one can
read from registry using APIs provided by
Microsoft from a C/C++ program and get all the
performance related data ... r some similar interfaces
provided by Apache webserver ???

I dont want to go through the Apaches native
utilities or some third party performance
querying tools.

I would really be thankful if someone can provide
me information about this, or provide some useful
pointers on this.


Nikhil


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


dlc at users

Dec 19, 2001, 2:44 PM

Post #2 of 3 (305 views)
Permalink
Re: How to get # of HTTP conenctions through C/C++ program [In reply to]

Nikhil Surve <nikse1 [at] yahoo> said something to this effect on 12/19/2001:
> It would be very nice if nyone can provide me some links or
> info about Apache HTTP server providing some exposed APIs, such
> that i can write a program in C/C++ and call this APIs and get
> the performance related information directly from Apache HTTP
> webserver ??? This performance related data couldbe like
> current count of HTTP connections establised with Apache
> webserver.
>
> Just to give an example, Microsoft IIS webserver provides the
> performance counters, which one can read from registry using
> APIs provided by Microsoft from a C/C++ program and get all the
> performance related data ... r some similar interfaces provided
> by Apache webserver ???
>
> I dont want to go through the Apaches native utilities or some
> third party performance querying tools.
>
> I would really be thankful if someone can provide me
> information about this, or provide some useful pointers on
> this.

You can parse the output of http://servername/server-status?auto,
yes? Look at http://httpd.apache.org/docs/mod/mod_status.html,
specifically the section "Machine Readable Status File".

(darren)

--
Small pleasures exclude great ones.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd


joshua at slive

Dec 19, 2001, 2:57 PM

Post #3 of 3 (306 views)
Permalink
RE: How to get # of HTTP conenctions through C/C++ program [In reply to]

> From: darren chamberlain [mailto:dlc [at] users]

> Nikhil Surve <nikse1 [at] yahoo> said something to this effect on
> 12/19/2001:
> > It would be very nice if nyone can provide me some links or
> > info about Apache HTTP server providing some exposed APIs, such
> > that i can write a program in C/C++ and call this APIs and get
> > the performance related information directly from Apache HTTP
> > webserver ??? This performance related data couldbe like
> > current count of HTTP connections establised with Apache
> > webserver.

> You can parse the output of http://servername/server-status?auto,
> yes? Look at http://httpd.apache.org/docs/mod/mod_status.html,
> specifically the section "Machine Readable Status File".

Right. And if you really must do it in C, then look at the source code for
mod_status, which will show you how to use the API to get the data.

Joshua.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe [at] httpd
For additional commands, e-mail: users-help [at] httpd

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.